hg-fast-export.py: support older hg versions

Do not use the closesbranch function as it was added in later
versions of hg.  Use its definition instead.
This commit is contained in:
Kyle J. McKay
2014-03-14 22:18:08 -07:00
committed by Frej Drejhammar
parent 728716375b
commit 4be2fa46ee

View File

@@ -272,7 +272,7 @@ def branchtip(repo, heads):
'''return the tipmost branch head in heads'''
tip = heads[-1]
for h in reversed(heads):
if not repo[h].closesbranch():
if 'close' not in repo.changelog.read(h)[5]:
tip = h
break
return tip