Patchwork [5,of,6] revert: drop the remnant of the prefetchfiles hook

login
register
mail settings
Submitter Matt Harbison
Date Feb. 11, 2018, 8:30 p.m.
Message ID <f479bfd4a1d8c4eb0ae6.1518381018@Envy>
Download mbox | patch
Permalink /patch/27581/
State Superseded
Headers show

Comments

Matt Harbison - Feb. 11, 2018, 8:30 p.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1518327627 18000
#      Sun Feb 11 00:40:27 2018 -0500
# Node ID f479bfd4a1d8c4eb0ae67f6f5cda8afe9c5da7dc
# Parent  10a1e5ef22e820e5b64da9010cb54b597e68d400
revert: drop the remnant of the prefetchfiles hook

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2873,8 +2873,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])
+            fileprefetchhooks(repo, ctx,
+                              [f for sublist in oplist for f in sublist])
             _performrevert(repo, parents, ctx, actions, interactive, tobackup)
 
         if targetsubs:
@@ -2893,11 +2893,6 @@ 
 
 _revertprefetch = _revertprefetchstub
 
-def _prefetchfiles(repo, ctx, files):
-    """Let extensions changing the storage layer prefetch content for any non
-    merge based command."""
-    fileprefetchhooks(repo, ctx, files)
-
 def _performrevert(repo, parents, ctx, actions, interactive=False,
                    tobackup=None):
     """function that actually perform all the actions computed for revert