Show More
@@ -413,7 +413,15 b' class converter(object):' | |||||
413 | parents = [self.map.get(p, p) for p in parents] |
|
413 | parents = [self.map.get(p, p) for p in parents] | |
414 | except KeyError: |
|
414 | except KeyError: | |
415 | parents = [b[0] for b in pbranches] |
|
415 | parents = [b[0] for b in pbranches] | |
416 | source = progresssource(self.ui, self.source, len(files)) |
|
416 | if len(parents) < 3: | |
|
417 | source = progresssource(self.ui, self.source, len(files)) | |||
|
418 | else: | |||
|
419 | # For an octopus merge, we end up traversing the list of | |||
|
420 | # changed files N-1 times. This tweak to the number of | |||
|
421 | # files makes it so the progress bar doesn't overflow | |||
|
422 | # itself. | |||
|
423 | source = progresssource(self.ui, self.source, | |||
|
424 | len(files) * (len(parents) - 1)) | |||
417 | newnode = self.dest.putcommit(files, copies, parents, commit, |
|
425 | newnode = self.dest.putcommit(files, copies, parents, commit, | |
418 | source, self.map, full) |
|
426 | source, self.map, full) | |
419 | source.close() |
|
427 | source.close() | |
@@ -535,4 +543,3 b' def convert(ui, src, dest=None, revmapfi' | |||||
535 |
|
543 | |||
536 | c = converter(ui, srcc, destc, revmapfile, opts) |
|
544 | c = converter(ui, srcc, destc, revmapfile, opts) | |
537 | c.convert(sortmode) |
|
545 | c.convert(sortmode) | |
538 |
|
@@ -207,14 +207,14 b' full conversion' | |||||
207 | \r (no-eol) (esc) |
|
207 | \r (no-eol) (esc) | |
208 | \r (no-eol) (esc) |
|
208 | \r (no-eol) (esc) | |
209 | converting [======================> ] 5/9\r (no-eol) (esc) |
|
209 | converting [======================> ] 5/9\r (no-eol) (esc) | |
210 |
getting files [=== |
|
210 | getting files [===> ] 1/8\r (no-eol) (esc) | |
211 |
getting files [======== |
|
211 | getting files [========> ] 2/8\r (no-eol) (esc) | |
212 |
getting files [============= |
|
212 | getting files [=============> ] 3/8\r (no-eol) (esc) | |
213 |
getting files [================== |
|
213 | getting files [==================> ] 4/8\r (no-eol) (esc) | |
214 |
getting files [ |
|
214 | getting files [=======================> ] 5/8\r (no-eol) (esc) | |
215 |
getting files [ |
|
215 | getting files [============================> ] 6/8\r (no-eol) (esc) | |
216 | getting files [ <=> ] 7/4\r (no-eol) (esc) |
|
216 | getting files [=================================> ] 7/8\r (no-eol) (esc) | |
217 | getting files [ <=> ] 8/4\r (no-eol) (esc) |
|
217 | getting files [======================================>] 8/8\r (no-eol) (esc) | |
218 | \r (no-eol) (esc) |
|
218 | \r (no-eol) (esc) | |
219 | \r (no-eol) (esc) |
|
219 | \r (no-eol) (esc) | |
220 | converting [===========================> ] 6/9\r (no-eol) (esc) |
|
220 | converting [===========================> ] 6/9\r (no-eol) (esc) |
General Comments 0
You need to be logged in to leave comments.
Login now