From: Kyle J. McKay Date: Sat, 15 Mar 2014 05:18:08 +0000 (-0700) Subject: hg-fast-export.py: support older hg versions X-Git-Tag: v160415~30 X-Git-Url: https://repo.or.cz/w/fast-export.git/commitdiff_plain/4be2fa46ee0797e9e4cc59cf82048e29e4dc2747 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. --- diff --git a/hg-fast-export.py b/hg-fast-export.py index 37ade95..afcdc46 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -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