From 432254100b1d31b94a91c851958612eb32101fa8 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 9 Mar 2023 18:13:04 -0600 Subject: [PATCH] Fetch branch names directly No need to use get_changeset() for just one thing. Signed-off-by: Felipe Contreras --- 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 97ac6a3..16550a2 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -512,7 +512,7 @@ def verify_heads(ui,repo,cache,force,ignore_unnamed_heads,branchesmap): t={} unnamed_heads=False for h in repo.filtered(b'visible').heads(): - (_,_,_,_,_,_,branch,_)=get_changeset(ui,repo,h) + branch=get_branch(repo[h].branch()) if t.get(branch,False): stderr_buffer.write( b'Error: repository has an unnamed head: hg r%d\n'