Mercurial > public > mercurial-scm > hg
diff hgext/convert/hg.py @ 41179:77088fa862df
convert: add missing numcommits() override to hg sources
Otherwise, the progressbar in converter.walktree() gets None as its total during
the initial scan. (Though that seems harmless, and there are other foreign vcs
sources without this.)
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 09 Jan 2019 14:33:06 -0500 |
parents | 73cf21b2e8a6 |
children | 876494fd967d |
line wrap: on
line diff
--- a/hgext/convert/hg.py Thu Jan 10 14:32:36 2019 -0800 +++ b/hgext/convert/hg.py Wed Jan 09 14:33:06 2019 -0500 @@ -597,6 +597,9 @@ saverev=self.saverev, phase=ctx.phase()) + def numcommits(self): + return len(self.repo) + def gettags(self): # This will get written to .hgtags, filter non global tags out. tags = [t for t in self.repo.tagslist()