Mercurial > hg-stable
diff hgext/convert/subversion.py @ 22414:299eaa09b41b
convert: enable deterministic conversion progress bar for svn
This produces slightly bad results when branches are in play, but
overall I think it's probably worthwhile. We might be able to do
better with branches somehow, but I haven't given it any thought.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 10 Sep 2014 10:52:00 -0400 |
parents | 35ab037de989 |
children | a8edcb9c1199 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Wed Sep 10 10:51:46 2014 -0400 +++ b/hgext/convert/subversion.py Wed Sep 10 10:52:00 2014 -0400 @@ -508,6 +508,9 @@ raise util.Abort(_('%s entry %s is not a valid revision' ' identifier') % (mapname, revstr)) + def numcommits(self): + return int(self.head.rsplit('@', 1)[1]) - self.startrev + def gettags(self): tags = {} if self.tags is None: