From c77ae926f07c67cb4c332fb93048a47c688f2b52 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Thu, 2 Apr 2026 21:51:43 +0200 Subject: [PATCH] Bugfix: Handle closed branches The update for Mercurial 7.2 in "Support Mercurial 7.2" (76db75d9631f) broke the handling of closed branches as it did not tell repo.branchmap().branchheads() to fetch all branch heads, including closed heads. This patch explicitly asks for all heads, thus restoring support for closed branches. --- hg-fast-export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index fa4e852..ba76cf3 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -490,7 +490,7 @@ def verify_heads(ui,repo,cache,force,ignore_unnamed_heads,branchesmap): branches={} for bn in repo.branchmap(): - heads = repo.branchmap().branchheads(bn) + heads = repo.branchmap().branchheads(bn, closed=True) branches[bn] = branchtip(repo, heads) l=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()] l.sort()