HG-NBMERGE(1)
π 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
- fedora 43: python3-nbdime 4.0.4-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: python3-nbdime 4.0.4-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms