diff --git a/hg-fast-export.py b/hg-fast-export.py index bf8c310..57ab210 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -491,7 +491,8 @@ def verify_heads(ui,repo,cache,force,ignore_unnamed_heads,branchesmap): for bn in repo.branchmap(): heads = repo.branchmap().branchheads(bn) - branches[bn] = branchtip(repo, heads) + if heads: + branches[bn] = branchtip(repo, heads) l=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()] l.sort()