440 s = shallowstore.wrapstore(s) |
440 s = shallowstore.wrapstore(s) |
441 |
441 |
442 return s |
442 return s |
443 |
443 |
444 # prefetch files before update |
444 # prefetch files before update |
445 def applyupdates(orig, repo, actions, wctx, mctx, overwrite, labels=None): |
445 def applyupdates(orig, repo, actions, wctx, mctx, overwrite, wantfiledata, |
|
446 labels=None): |
446 if isenabled(repo): |
447 if isenabled(repo): |
447 manifest = mctx.manifest() |
448 manifest = mctx.manifest() |
448 files = [] |
449 files = [] |
449 for f, args, msg in actions['g']: |
450 for f, args, msg in actions['g']: |
450 files.append((f, hex(manifest[f]))) |
451 files.append((f, hex(manifest[f]))) |
451 # batch fetch the needed files from the server |
452 # batch fetch the needed files from the server |
452 repo.fileservice.prefetch(files) |
453 repo.fileservice.prefetch(files) |
453 return orig(repo, actions, wctx, mctx, overwrite, labels=labels) |
454 return orig(repo, actions, wctx, mctx, overwrite, wantfiledata, |
|
455 labels=labels) |
454 |
456 |
455 # Prefetch merge checkunknownfiles |
457 # Prefetch merge checkunknownfiles |
456 def checkunknownfiles(orig, repo, wctx, mctx, force, actions, |
458 def checkunknownfiles(orig, repo, wctx, mctx, force, actions, |
457 *args, **kwargs): |
459 *args, **kwargs): |
458 if isenabled(repo): |
460 if isenabled(repo): |