##// END OF EJS Templates
convert: enable deterministic conversion progress bar for git
Augie Fackler -
r22413:3cb0318b default
parent child Browse files
Show More
@@ -263,6 +263,9 b' class convert_git(converter_source):'
263 rev=version)
263 rev=version)
264 return c
264 return c
265
265
266 def numcommits(self):
267 return len([None for _ in self.gitopen('git rev-list --all')])
268
266 def gettags(self):
269 def gettags(self):
267 tags = {}
270 tags = {}
268 alltags = {}
271 alltags = {}
@@ -342,4 +345,3 b' class convert_git(converter_source):'
342 def checkrevformat(self, revstr, mapname='splicemap'):
345 def checkrevformat(self, revstr, mapname='splicemap'):
343 """ git revision string is a 40 byte hex """
346 """ git revision string is a 40 byte hex """
344 self.checkhexformat(revstr, mapname)
347 self.checkhexformat(revstr, mapname)
345
@@ -56,12 +56,12 b' Remove the directory, then try to replac'
56 > --config progress.refresh=0 --config progress.width=60 \
56 > --config progress.refresh=0 --config progress.width=60 \
57 > --datesort git-repo
57 > --datesort git-repo
58 \r (no-eol) (esc)
58 \r (no-eol) (esc)
59 scanning [ <=> ] 1\r (no-eol) (esc)
59 scanning [======> ] 1/6\r (no-eol) (esc)
60 scanning [ <=> ] 2\r (no-eol) (esc)
60 scanning [=============> ] 2/6\r (no-eol) (esc)
61 scanning [ <=> ] 3\r (no-eol) (esc)
61 scanning [=====================> ] 3/6\r (no-eol) (esc)
62 scanning [ <=> ] 4\r (no-eol) (esc)
62 scanning [============================> ] 4/6\r (no-eol) (esc)
63 scanning [ <=> ] 5\r (no-eol) (esc)
63 scanning [===================================> ] 5/6\r (no-eol) (esc)
64 scanning [ <=> ] 6\r (no-eol) (esc)
64 scanning [===========================================>] 6/6\r (no-eol) (esc)
65 \r (no-eol) (esc)
65 \r (no-eol) (esc)
66 \r (no-eol) (esc)
66 \r (no-eol) (esc)
67 converting [ ] 0/6\r (no-eol) (esc)
67 converting [ ] 0/6\r (no-eol) (esc)
General Comments 0
You need to be logged in to leave comments. Login now