Since hg runs and supports older versions of python, hg-fast-export.py
should too. Replace dictionary comprehension with equivalent code that
supports versions of python older than 2.7.
return tip
def verify_heads(ui,repo,cache,force):
- branches={bn: branchtip(repo, heads)
- for bn, heads in repo.branchmap().iteritems()}
+ branches={}
+ for bn, heads in repo.branchmap().iteritems():
+ branches[bn] = branchtip(repo, heads)
l=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()]
l.sort()