diff -r a53bfc2845f2 -r 6582dc01aca3 mercurial/merge.py --- a/mercurial/merge.py Sat Jun 24 23:05:57 2017 +0900 +++ b/mercurial/merge.py Sun Jun 25 16:56:49 2017 -0700 @@ -1078,7 +1078,7 @@ return actions, diverge, renamedelete -def batchremove(repo, actions): +def batchremove(repo, wctx, actions): """apply removes to the working directory yields tuples for progress updates @@ -1122,7 +1122,7 @@ "(consider changing to repo root: %s)\n") % repo.root) -def batchget(repo, mctx, actions): +def batchget(repo, mctx, wctx, actions): """apply gets to the working directory mctx is the context to get from @@ -1222,14 +1222,16 @@ # remove in parallel (must come first) z = 0 - prog = worker.worker(repo.ui, 0.001, batchremove, (repo,), actions['r']) + prog = worker.worker(repo.ui, 0.001, batchremove, (repo, wctx), + actions['r']) for i, item in prog: z += i progress(_updating, z, item=item, total=numupdates, unit=_files) removed = len(actions['r']) # get in parallel - prog = worker.worker(repo.ui, 0.001, batchget, (repo, mctx), actions['g']) + prog = worker.worker(repo.ui, 0.001, batchget, (repo, mctx, wctx), + actions['g']) for i, item in prog: z += i progress(_updating, z, item=item, total=numupdates, unit=_files)