##// END OF EJS Templates
merge: move constant assignments a bit and use them more
Mads Kiilerich -
r21390:26b84128 default
parent child Browse files
Show More
@@ -650,6 +650,9 b' def applyupdates(repo, actions, wctx, mc'
650 650 moves.append(f1)
651 651
652 652 audit = repo.wopener.audit
653 _updating = _('updating')
654 _files = _('files')
655 progress = repo.ui.progress
653 656
654 657 # remove renamed files after safely stored
655 658 for f in moves:
@@ -670,27 +673,24 b' def applyupdates(repo, actions, wctx, mc'
670 673 if hgsub and hgsub[0] == 'r':
671 674 subrepo.submerge(repo, wctx, mctx, wctx, overwrite)
672 675
676 # remove in parallel (must come first)
673 677 z = 0
674 678 prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite),
675 679 removeactions)
676 680 for i, item in prog:
677 681 z += i
678 repo.ui.progress(_('updating'), z, item=item, total=numupdates,
679 unit=_('files'))
682 progress(_updating, z, item=item, total=numupdates, unit=_files)
683
684 # get in parallel
680 685 prog = worker.worker(repo.ui, 0.001, getremove, (repo, mctx, overwrite),
681 686 updateactions)
682 687 for i, item in prog:
683 688 z += i
684 repo.ui.progress(_('updating'), z, item=item, total=numupdates,
685 unit=_('files'))
689 progress(_updating, z, item=item, total=numupdates, unit=_files)
686 690
687 691 if hgsub and hgsub[0] == 'g':
688 692 subrepo.submerge(repo, wctx, mctx, wctx, overwrite)
689 693
690 _updating = _('updating')
691 _files = _('files')
692 progress = repo.ui.progress
693
694 694 for i, a in enumerate(actions):
695 695 f, m, args, msg = a
696 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