Bugfix: Handle closed branches

The update for Mercurial 7.2 in "Support Mercurial 7.2" (76db75d963)
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.
This commit is contained in:
Frej Drejhammar
2026-04-02 21:51:43 +02:00
parent 52da2b2a76
commit c77ae926f0

View File

@@ -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()