Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7287163
)
hg-fast-export.py: support older hg versions
author
Kyle J. McKay
<mackyle@gmail.com>
Sat, 15 Mar 2014 05:18:08 +0000
(22:18 -0700)
committer
Frej Drejhammar
<frej.drejhammar@gmail.com>
Sun, 16 Mar 2014 15:00:42 +0000
(16:00 +0100)
Do not use the closesbranch function as it was added in later
versions of hg. Use its definition instead.
hg-fast-export.py
patch
|
blob
|
history
diff --git
a/hg-fast-export.py
b/hg-fast-export.py
index
37ade95
..
afcdc46
100755
(executable)
--- 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