mirror of
https://github.com/frej/fast-export.git
synced 2025-11-03 09:45:48 +01:00
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:
committed by
Frej Drejhammar
parent
8ed62c9cf7
commit
728716375b
@@ -278,8 +278,9 @@ def branchtip(repo, heads):
|
|||||||
return tip
|
return tip
|
||||||
|
|
||||||
def verify_heads(ui,repo,cache,force):
|
def verify_heads(ui,repo,cache,force):
|
||||||
branches={bn: branchtip(repo, heads)
|
branches={}
|
||||||
for bn, heads in repo.branchmap().iteritems()}
|
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=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()]
|
||||||
l.sort()
|
l.sort()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user