--- a/mercurial/cmdutil.py Sun Feb 11 00:51:22 2018 -0500
+++ b/mercurial/cmdutil.py Sun Feb 11 00:40:27 2018 -0500
@@ -2871,8 +2871,8 @@
_revertprefetch(repo, ctx,
*[actions[name][0] for name in needdata])
oplist = [actions[name][0] for name in needdata]
- _prefetchfiles(repo, ctx,
- [f for sublist in oplist for f in sublist])
+ prefetch = scmutil.fileprefetchhooks
+ prefetch(repo, ctx, [f for sublist in oplist for f in sublist])
_performrevert(repo, parents, ctx, actions, interactive, tobackup)
if targetsubs:
@@ -2891,11 +2891,6 @@
_revertprefetch = _revertprefetchstub
-def _prefetchfiles(repo, ctx, files):
- """Let extensions changing the storage layer prefetch content for any non
- merge based command."""
- scmutil.fileprefetchhooks(repo, ctx, files)
-
def _performrevert(repo, parents, ctx, actions, interactive=False,
tobackup=None):
"""function that actually perform all the actions computed for revert