changeset 36141:62719115875d

revert: drop the remnant of the prefetchfiles hook
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 11 Feb 2018 00:40:27 -0500
parents 3a90159c2c2e
children 60dd840a7fdb
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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