diff options
author | Rocco Rutte <pdmef@gmx.net> | 2008-09-19 08:01:53 +0200 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2008-09-19 08:01:53 +0200 |
commit | 02bc08886f3e2d07ae18e5bceda57f8b1a6694e8 (patch) | |
tree | 4081610ffe276af9ef942c9d11c35e4ab1f9431d | |
parent | e8ba36aa3fa0802db2a461e0f9fc964623398708 (diff) | |
download | hg-fast-export-02bc08886f3e2d07ae18e5bceda57f8b1a6694e8.tar.gz |
hg-fast-export: Catch up with mercurial crew API changes
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
-rwxr-xr-x | hg-fast-export.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hg-fast-export.py b/hg-fast-export.py index d010d4d..ca3ab69 100755 --- 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 |