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