hg-fast-export.py: restore compatibility with older python

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.
This commit is contained in:
Kyle J. McKay
2014-03-14 21:06:53 -07:00
committed by Frej Drejhammar
parent 8ed62c9cf7
commit 728716375b

View File

@@ -278,8 +278,9 @@ def branchtip(repo, heads):
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()