mirror of
https://github.com/frej/fast-export.git
synced 2026-01-22 06:02:03 +01:00
Fetch branch names directly
No need to use get_changeset() for just one thing. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user