Show More
@@ -650,6 +650,9 b' def applyupdates(repo, actions, wctx, mc' | |||||
650 | moves.append(f1) |
|
650 | moves.append(f1) | |
651 |
|
651 | |||
652 | audit = repo.wopener.audit |
|
652 | audit = repo.wopener.audit | |
|
653 | _updating = _('updating') | |||
|
654 | _files = _('files') | |||
|
655 | progress = repo.ui.progress | |||
653 |
|
656 | |||
654 | # remove renamed files after safely stored |
|
657 | # remove renamed files after safely stored | |
655 | for f in moves: |
|
658 | for f in moves: | |
@@ -670,27 +673,24 b' def applyupdates(repo, actions, wctx, mc' | |||||
670 | if hgsub and hgsub[0] == 'r': |
|
673 | if hgsub and hgsub[0] == 'r': | |
671 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) |
|
674 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) | |
672 |
|
675 | |||
|
676 | # remove in parallel (must come first) | |||
673 | z = 0 |
|
677 | z = 0 | |
674 | prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite), |
|
678 | prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite), | |
675 | removeactions) |
|
679 | removeactions) | |
676 | for i, item in prog: |
|
680 | for i, item in prog: | |
677 | z += i |
|
681 | z += i | |
678 |
|
|
682 | progress(_updating, z, item=item, total=numupdates, unit=_files) | |
679 | unit=_('files')) |
|
683 | ||
|
684 | # get in parallel | |||
680 | prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite), |
|
685 | prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite), | |
681 | updateactions) |
|
686 | updateactions) | |
682 | for i, item in prog: |
|
687 | for i, item in prog: | |
683 | z += i |
|
688 | z += i | |
684 |
|
|
689 | progress(_updating, z, item=item, total=numupdates, unit=_files) | |
685 | unit=_('files')) |
|
|||
686 |
|
690 | |||
687 | if hgsub and hgsub[0] == 'g': |
|
691 | if hgsub and hgsub[0] == 'g': | |
688 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) |
|
692 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) | |
689 |
|
693 | |||
690 | _updating = _('updating') |
|
|||
691 | _files = _('files') |
|
|||
692 | progress = repo.ui.progress |
|
|||
693 |
|
||||
694 | for i, a in enumerate(actions): |
|
694 | for i, a in enumerate(actions): | |
695 | f, m, args, msg = a |
|
695 | f, m, args, msg = a | |
696 | progress(_updating, z + i + 1, item=f, total=numupdates, unit=_files) |
|
696 | progress(_updating, z + i + 1, item=f, total=numupdates, unit=_files) |
General Comments 0
You need to be logged in to leave comments.
Login now