HG-NBMERGE(1)

πŸ“¦
version 4.0.4 Β· 2 versions
, in fedora 43, fedora 44

πŸ’… hg-nbmerge β€” a mercurial CLI merge tool for notebooks

okay bestie, so hg-nbmerge is a mercurial CLI merge tool for notebooks ✨ and honestly? she's iconic. let's get into it.


🌸 SYNOPSIS 🌸

usage: hg-nbmerge [-h] [--version] [--config]
              [--log-level {DEBUG,INFO,WARN,ERROR,CRITICAL}] [-s] [-o] [-a]
              [-m] [-i] [-d] [--merge-strategy
              {inline,use-base,use-local,use-remote}] [--input-strategy
              {inline,use-base,use-local,use-remote}] [--output-strategy
              {inline,use-base,use-local,use-remote,remove,clear-all}]
              [--no-ignore-transients] base local remote merged

✨ DESCRIPTION ✨

A mercurial CLI merge tool for notebooks. periodt. πŸ’–

She uses nbdime to merge notebooks instead of doing plain text merges of JSON β€” which, no cap, is the whole glow-up. JSON merges are giving chaos, notebook merges are giving main character energy. See the documentation for how to correctly configure mercurial to use this, iykyk.

Use with:

hg merge [<commit> [<commit>]]

πŸŽ€ POSITIONAL ARGUMENTS πŸŽ€

  • base β€” the base notebook filename.
  • local β€” the local modified notebook filename.
  • remote β€” the remote modified notebook filename.
  • merged β€” the merge result notebook filename.

πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” show this help message and exit. the classic. she's always there for you 🫢
  • --version β€” show program's version number and exit.
  • --config β€” list the valid config keys and their current effective values. very "show me your receipts" of her πŸ’…
  • --log-level {DEBUG,INFO,WARN,ERROR,CRITICAL} β€” set the log level by name.
  • --merge-strategy {inline,use-base,use-local,use-remote} β€” the merge strategy to use.
  • --input-strategy {inline,use-base,use-local,use-remote} β€” the merge strategy to use for inputs (overrides 'merge-strategy' for inputs).
  • --output-strategy {inline,use-base,use-local,use-remote,remove,clear-all} β€” the merge strategy to use for outputs (overrides 'merge-strategy' for outputs).
  • --no-ignore-transients β€” disallow deletion of transient data such as outputs and execution counts in order to resolve conflicts.

🧚 IGNORABLES 🧚

Set which parts of the notebook (not) to process. pick your battles, babe 🌈

  • -s, --sources, -S, --ignore-sources β€” process/ignore sources.
  • -o, --outputs, -O, --ignore-outputs β€” process/ignore outputs.
  • -a, --attachments, -A, --ignore-attachments β€” process/ignore attachments.
  • -m, --metadata, -M, --ignore-metadata β€” process/ignore metadata.
  • -i, --id, -I, --ignore-id β€” process/ignore identifiers.
  • -d, --details, -D, --ignore-details β€” process/ignore details not covered by other options.
lowkey reminder bestie: these flags come in matching pairs β€” the lowercase one says "yes queen, process this" and the uppercase one says "not today, skip it." πŸ’€

that's the whole page, and she ate fr fr πŸ’–βœ¨

hg-nbmerge version 4.0.4, dated February 2026 β€” this listing is from the User Commands manual. mwah, go merge something pretty πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from