Skip to content

Support Mercurial 7.2#349

Merged
frej merged 1 commit intomasterfrom
frej/fix-gh348
Feb 14, 2026
Merged

Support Mercurial 7.2#349
frej merged 1 commit intomasterfrom
frej/fix-gh348

Conversation

@frej
Copy link
Copy Markdown
Owner

@frej frej commented Feb 14, 2026

In Mercurial 7.2 the iteritems() method of the branchmap has been removed. Switch to iterating over the branches and then fetching heads by the branchheads() method.

Closes #348

@frej frej force-pushed the frej/fix-gh348 branch 5 times, most recently from 932fa3d to be0c1c7 Compare February 14, 2026 14:59
@frej
Copy link
Copy Markdown
Owner Author

frej commented Feb 14, 2026

This was intended as a quick fix to adapt to changes in Mercurial 7.2, unfortunately it appears that Mercurial 7.2 breaks (at least in Github CI) one of the plugins in the test suite.

Unfortunately I have very little time to spend on the maintenance of fast-export, so for this to progress further, I could use some help, i.e. patches welcome.

@frej frej added the patches-welcome The reporter is welcome to submit a patch to fix the reported issue label Feb 14, 2026
@frej frej removed patches-welcome The reporter is welcome to submit a patch to fix the reported issue labels Feb 14, 2026
In Mercurial 7.2 the iteritems() method of the branchmap has been
removed. Switch to iterating over the branches and then fetching heads
by the branchheads() method. In 7.2, a call to
mercurial.initialization.init() is also needed to process a repo using
the largefiles extension.

Thanks to Michael Cho (@cho-m) for suggesting the initialization fix.

Closes #348

Co-developed-by: Michael Cho <michael@michaelcho.dev>
@frej frej merged commit c87b66e into master Feb 14, 2026
5 checks passed
@frej frej deleted the frej/fix-gh348 branch February 14, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support latest Mercurial 7.2

1 participant