• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 24277848828

11 Apr 2026 07:40AM UTC coverage: 88.175% (-0.2%) from 88.4%
24277848828

push

github

web-flow
Add Mercurial VCS support (#90)

* add mercurial VCS support

Detect .hg repos via DetectVCS() and use hg commands for diff,
blame, and file listing. Git repos continue to work unchanged.

- VCS detection walks up directories looking for .git or .hg
- Hg renderer implements Renderer and Blamer interfaces
- Ref translation: HEAD→., HEAD~N→.~N, HEAD^→.^, HEAD^N→pN(.)
- Uses hg status for changed files, hg diff --git for diffs
- Uses hg annotate with template for blame data
- --staged warns when used with hg (no staging area)
- --all-files unsupported for hg repos
- Documentation updated across README, CLAUDE.md, site, plugins

* fix: handle triple-dot refs in revFlag, make test hermetic

- revFlag now handles A...B (triple-dot) refs by translating to
  ancestor(A,B)..B in Mercurial revset syntax
- TestDetectVCS_Git uses a temp dir with .git instead of relying
  on running inside the revdiff checkout

* fix: address umputun review — FallbackRenderer for hg --only, methods convention

- --only in hg repos now uses FallbackRenderer (delegates to Hg renderer
  first, falls back to disk read), matching the git path behaviour
- FallbackRenderer.inner changed from *Git to renderer interface so both
  Git and Hg can be wrapped
- parseStatus and hgStatusToFileStatus converted to methods on *Hg per
  CLAUDE.md convention
- Reverted TestDetectVCS_Git to integration test per reviewer preference

198 of 256 new or added lines in 6 files covered. (77.34%)

1 existing line in 1 file now uncovered.

6234 of 7070 relevant lines covered (88.18%)

371.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.42
/app/diff/fallback.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc