From 4be2fa46ee0797e9e4cc59cf82048e29e4dc2747 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 14 Mar 2014 22:18:08 -0700 Subject: [PATCH] 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. --- hg-fast-export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT