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:
e8ba36a
)
hg-fast-export: Catch up with mercurial crew API changes
author
Rocco Rutte
<pdmef@gmx.net>
Fri, 19 Sep 2008 06:01:53 +0000
(08:01 +0200)
committer
Rocco Rutte
<pdmef@gmx.net>
Fri, 19 Sep 2008 06:01:53 +0000
(08:01 +0200)
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg-fast-export.py
patch
|
blob
|
history
diff --git
a/hg-fast-export.py
b/hg-fast-export.py
index
d010d4d
..
ca3ab69
100755
(executable)
--- a/
hg-fast-export.py
+++ b/
hg-fast-export.py
@@
-330,7
+330,10
@@
def hg2git(repourl,m,marksfile,headsfile,tipfile,authors={},sob=False,force=Fals
if not verify_heads(ui,repo,heads_cache,force):
return 1
- tip=repo.changelog.count()
+ try:
+ tip=repo.changelog.count()
+ except AttributeError:
+ tip=len(repo)
min=int(state_cache.get('tip',0))
max=_max