hg-fast-export.py: Don't attempt to dump revs beyond tip with -m
authorRocco Rutte <pdmef@gmx.net>
Thu, 25 Oct 2007 13:23:17 +0000 (15:23 +0200)
committerRocco Rutte <pdmef@gmx.net>
Thu, 25 Oct 2007 13:23:17 +0000 (15:23 +0200)
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg-fast-export.py

index 8113333..6b501f8 100755 (executable)
@@ -305,7 +305,7 @@ def hg2git(repourl,m,marksfile,headsfile,tipfile,authors={},sob=False,force=Fals
 
   min=int(state_cache.get('tip',0))
   max=_max
-  if _max<0:
+  if _max<0 or max>tip:
     max=tip
 
   c=0