Show More
@@ -350,7 +350,8 b' def getremove(repo, mctx, overwrite, arg' | |||||
350 | yields tuples for progress updates |
|
350 | yields tuples for progress updates | |
351 | """ |
|
351 | """ | |
352 | audit = repo.wopener.audit |
|
352 | audit = repo.wopener.audit | |
353 | for i, arg in enumerate(args): |
|
353 | i = 0 | |
|
354 | for arg in args: | |||
354 | f = arg[0] |
|
355 | f = arg[0] | |
355 | if arg[1] == 'r': |
|
356 | if arg[1] == 'r': | |
356 | repo.ui.note(_("removing %s\n") % f) |
|
357 | repo.ui.note(_("removing %s\n") % f) | |
@@ -363,6 +364,11 b' def getremove(repo, mctx, overwrite, arg' | |||||
363 | else: |
|
364 | else: | |
364 | repo.ui.note(_("getting %s\n") % f) |
|
365 | repo.ui.note(_("getting %s\n") % f) | |
365 | repo.wwrite(f, mctx.filectx(f).data(), arg[2][0]) |
|
366 | repo.wwrite(f, mctx.filectx(f).data(), arg[2][0]) | |
|
367 | if i == 100: | |||
|
368 | yield i, f | |||
|
369 | i = 0 | |||
|
370 | i += 1 | |||
|
371 | if i > 0: | |||
366 | yield i, f |
|
372 | yield i, f | |
367 |
|
373 | |||
368 | def applyupdates(repo, actions, wctx, mctx, actx, overwrite): |
|
374 | def applyupdates(repo, actions, wctx, mctx, actx, overwrite): | |
@@ -425,15 +431,15 b' def applyupdates(repo, actions, wctx, mc' | |||||
425 | if hgsub and hgsub[0] == 'r': |
|
431 | if hgsub and hgsub[0] == 'r': | |
426 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) |
|
432 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) | |
427 |
|
433 | |||
|
434 | z = 0 | |||
428 | for i, item in getremove(repo, mctx, overwrite, workeractions): |
|
435 | for i, item in getremove(repo, mctx, overwrite, workeractions): | |
429 | repo.ui.progress(_('updating'), i + 1, item=item, total=numupdates, |
|
436 | z += i | |
|
437 | repo.ui.progress(_('updating'), z, item=item, total=numupdates, | |||
430 | unit=_('files')) |
|
438 | unit=_('files')) | |
431 |
|
439 | |||
432 | if hgsub and hgsub[0] == 'g': |
|
440 | if hgsub and hgsub[0] == 'g': | |
433 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) |
|
441 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) | |
434 |
|
442 | |||
435 | z = len(workeractions) |
|
|||
436 |
|
||||
437 | for i, a in enumerate(actions): |
|
443 | for i, a in enumerate(actions): | |
438 | f, m, args, msg = a |
|
444 | f, m, args, msg = a | |
439 | repo.ui.progress(_('updating'), z + i + 1, item=f, total=numupdates, |
|
445 | repo.ui.progress(_('updating'), z + i + 1, item=f, total=numupdates, |
General Comments 0
You need to be logged in to leave comments.
Login now