Show More
@@ -423,26 +423,24 class rebaseruntime(object): | |||||
423 |
|
423 | |||
424 | cands = [k for k, v in self.state.iteritems() if v == revtodo] |
|
424 | cands = [k for k, v in self.state.iteritems() if v == revtodo] | |
425 | total = len(cands) |
|
425 | total = len(cands) | |
426 | pos = 0 |
|
426 | posholder = [0] | |
|
427 | def progress(ctx): | |||
|
428 | posholder[0] += 1 | |||
|
429 | self.repo.ui.progress(_("rebasing"), posholder[0], | |||
|
430 | ("%d:%s" % (ctx.rev(), ctx)), | |||
|
431 | _('changesets'), total) | |||
|
432 | allowdivergence = self.ui.configbool( | |||
|
433 | 'experimental', 'evolution.allowdivergence') | |||
427 | for subset in sortsource(self.destmap): |
|
434 | for subset in sortsource(self.destmap): | |
428 | sortedrevs = self.repo.revs('sort(%ld, -topo)', subset) |
|
435 | sortedrevs = self.repo.revs('sort(%ld, -topo)', subset) | |
429 | allowdivergence = self.ui.configbool( |
|
|||
430 | 'experimental', 'evolution.allowdivergence') |
|
|||
431 | if not allowdivergence: |
|
436 | if not allowdivergence: | |
432 | sortedrevs -= self.repo.revs( |
|
437 | sortedrevs -= self.repo.revs( | |
433 | 'descendants(%ld) and not %ld', |
|
438 | 'descendants(%ld) and not %ld', | |
434 | self.obsoletewithoutsuccessorindestination, |
|
439 | self.obsoletewithoutsuccessorindestination, | |
435 | self.obsoletewithoutsuccessorindestination, |
|
440 | self.obsoletewithoutsuccessorindestination, | |
436 | ) |
|
441 | ) | |
437 | posholder = [pos] |
|
|||
438 | def progress(ctx): |
|
|||
439 | posholder[0] += 1 |
|
|||
440 | self.repo.ui.progress(_("rebasing"), posholder[0], |
|
|||
441 | ("%d:%s" % (ctx.rev(), ctx)), |
|
|||
442 | _('changesets'), total) |
|
|||
443 | for rev in sortedrevs: |
|
442 | for rev in sortedrevs: | |
444 | self._rebasenode(tr, rev, allowdivergence, progress) |
|
443 | self._rebasenode(tr, rev, allowdivergence, progress) | |
445 | pos = posholder[0] |
|
|||
446 | ui.progress(_('rebasing'), None) |
|
444 | ui.progress(_('rebasing'), None) | |
447 | ui.note(_('rebase merging completed\n')) |
|
445 | ui.note(_('rebase merging completed\n')) | |
448 |
|
446 |
General Comments 0
You need to be logged in to leave comments.
Login now