Hunk extension that adds Mercurial (hg) support.
Hunk 0.19 or newer installs extensions directly from Git:
hunk extension install modem-dev/hunk-hgNew Hunk sessions detect Mercurial repositories automatically. The extension requires hg on your PATH.
Run Hunk inside any Mercurial checkout:
hunk diff # working-copy changes and unknown files
hunk diff --exclude-untracked
hunk diff REV # REV versus the working copy
hunk diff A..B # revision A versus revision B
hunk show REV # one changeset versus its first parent
hunk diff -- path/to/file # filter by pathA..B is translated to Mercurial's hg diff --from A --to B syntax. Hunk's --staged flag is unavailable because Mercurial has no staging area. hunk stash show is also unavailable; Mercurial shelves do not have Git-stash semantics.
Mercurial merge diffs retain Mercurial's default first-parent behavior. Use Mercurial's own diff.merge configuration when you need its conflict-region behavior.
bun install
bun run check
hunk diff --extension /path/to/hunk-hgThe test suite runs real Mercurial integration tests when hg is installed. CI installs Mercurial before validation.
Tag a release and pin it when installing:
hunk extension install modem-dev/hunk-hg@v0.1.0See Hunk's extension guide for the extension trust model and API.
