Mercurial source control integration for VS Code, providing an experience
similar to the built-in Git extension.
Features
Source Control view with Staged Changes, Changes and Untracked
Files groups (empty groups are hidden, like the Git extension)
Git-like staging without Mercurial's index: stage/unstage individual
files or whole groups (context menu or group-header +/− buttons);
untracked files are hg added automatically when staged
Smart commit via the SCM input box: commits only the staged changes
when the staged group is non-empty, all changes otherwise (or pass
specific files to commit just those)
Git-style status letter badges (M/A/R/D/?) with Git's decoration colors at
the right end of each row
Inline diff against the parent revision (hg diff-style view), both by
clicking a file in the SCM view and via editor gutter diff
decorations (through quickDiffProvider, like the Git extension)
Annotate (blame): line-age prefixes beside the line numbers with
per-line hover tooltips (author, date, changeset), toggled per editor
Show repository history (hg log)
History graph view: colored revision graph with branches/merges.
Click a changeset to see its changed files; click a file to see the
side-by-side diff at that commit (parent → changeset, via revset
expressions like p1(<node>)). Right-click for details / whole-commit
diff / hg update -r / copy commit hash or message
Graph view in the Source Control area: like the built-in Git
extension's Source Control Graph — a Graph section appears next to
Repositories/Changes, rendering the revision graph with colored SVG
lanes and dots (branches/merges drawn as real curves, not ASCII art).
Click a commit to expand its changed files (M/A/R badges); click a file
to open the side-by-side diff at that commit. Right-click for
details / whole-commit diff / hg update -r. Toggle with
hg.showGraphInView
Branch name in the SCM view label, with quick branch switching
(hg.update-style picker)
Automatic refresh on file changes
See development.md for build, test and packaging
instructions.
Requirements
Mercurial (hg) on your PATH, or set hg.path in settings
VS Code 1.99+
Current limitations (roadmap toward full Git-parity)
Single root repository per workspace folder (multi-root works folder-wise)