Mercurial > hg
diff hgext/convert/git.py @ 22413:3cb0318bb2dd
convert: enable deterministic conversion progress bar for git
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 10 Sep 2014 10:51:46 -0400 |
parents | 35ab037de989 |
children | 333d654783ad |
line wrap: on
line diff
--- a/hgext/convert/git.py Wed Sep 10 11:04:29 2014 -0400 +++ b/hgext/convert/git.py Wed Sep 10 10:51:46 2014 -0400 @@ -263,6 +263,9 @@ rev=version) return c + def numcommits(self): + return len([None for _ in self.gitopen('git rev-list --all')]) + def gettags(self): tags = {} alltags = {} @@ -342,4 +345,3 @@ def checkrevformat(self, revstr, mapname='splicemap'): """ git revision string is a 40 byte hex """ self.checkhexformat(revstr, mapname) -