##// END OF EJS Templates
convert: enable deterministic conversion progress bar for svn...
Augie Fackler -
r22414:299eaa09 default
parent child Browse files
Show More
@@ -508,6 +508,9 b' class svn_source(converter_source):'
508 508 raise util.Abort(_('%s entry %s is not a valid revision'
509 509 ' identifier') % (mapname, revstr))
510 510
511 def numcommits(self):
512 return int(self.head.rsplit('@', 1)[1]) - self.startrev
513
511 514 def gettags(self):
512 515 tags = {}
513 516 if self.tags is None:
@@ -20,7 +20,7 b' Convert while testing all possible outpu'
20 20 found branches at 'branches'
21 21 found branch branch\xc3\xa9 at 5 (esc)
22 22 found branch branch\xc3\xa9e at 6 (esc)
23 scanning: 1 revisions
23 scanning: 1/4 revisions (25.00%)
24 24 reparent to file://*/svn-repo/trunk (glob)
25 25 fetching revision log for "/trunk" from 4 to 0
26 26 parsing revision 4 (2 changes)
@@ -30,23 +30,23 b' Convert while testing all possible outpu'
30 30 no copyfrom path, don't know what to do.
31 31 '/branches' is not under '/trunk', ignoring
32 32 '/tags' is not under '/trunk', ignoring
33 scanning: 2 revisions
33 scanning: 2/4 revisions (50.00%)
34 34 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
35 35 fetching revision log for "/branches/branch\xc3\xa9" from 5 to 0 (esc)
36 36 parsing revision 5 (1 changes)
37 37 reparent to file://*/svn-repo (glob)
38 38 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
39 39 found parent of branch /branches/branch\xc3\xa9 at 4: /trunk (esc)
40 scanning: 3 revisions
40 scanning: 3/4 revisions (75.00%)
41 41 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
42 42 fetching revision log for "/branches/branch\xc3\xa9e" from 6 to 0 (esc)
43 43 parsing revision 6 (1 changes)
44 44 reparent to file://*/svn-repo (glob)
45 45 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
46 46 found parent of branch /branches/branch\xc3\xa9e at 5: /branches/branch\xc3\xa9 (esc)
47 scanning: 4 revisions
48 scanning: 5 revisions
49 scanning: 6 revisions
47 scanning: 4/4 revisions (100.00%)
48 scanning: 5/4 revisions (125.00%)
49 scanning: 6/4 revisions (150.00%)
50 50 sorting...
51 51 converting...
52 52 5 init projA
@@ -165,13 +165,13 b' Test convert progress bar'
165 165
166 166 $ hg convert svn-repo hg-progress
167 167 \r (no-eol) (esc)
168 scanning [ <=> ] 1\r (no-eol) (esc)
169 scanning [ <=> ] 2\r (no-eol) (esc)
170 scanning [ <=> ] 3\r (no-eol) (esc)
171 scanning [ <=> ] 4\r (no-eol) (esc)
172 scanning [ <=> ] 5\r (no-eol) (esc)
173 scanning [ <=> ] 6\r (no-eol) (esc)
174 scanning [ <=> ] 7\r (no-eol) (esc)
168 scanning [=====> ] 1/7\r (no-eol) (esc)
169 scanning [===========> ] 2/7\r (no-eol) (esc)
170 scanning [=================> ] 3/7\r (no-eol) (esc)
171 scanning [========================> ] 4/7\r (no-eol) (esc)
172 scanning [==============================> ] 5/7\r (no-eol) (esc)
173 scanning [====================================> ] 6/7\r (no-eol) (esc)
174 scanning [===========================================>] 7/7\r (no-eol) (esc)
175 175 \r (no-eol) (esc)
176 176 \r (no-eol) (esc)
177 177 converting [ ] 0/7\r (no-eol) (esc)
General Comments 0
You need to be logged in to leave comments. Login now