mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 01:05:48 +01:00
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:
committed by
Frej Drejhammar
parent
728716375b
commit
4be2fa46ee
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user