[PATCH 5 of 6 V2] revert: drop the remnant of the prefetchfiles hook
Matt Harbison
mharbison72 at gmail.com
Mon Feb 12 03:58:07 UTC 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1518327627 18000
# Sun Feb 11 00:40:27 2018 -0500
# Node ID d05ecbfd419747d580100f86a3ffdc3b85574166
# Parent 386c98fec8ab751dfa6dc7fd7a83ecc2c5d6815b
revert: drop the remnant of the prefetchfiles hook
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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])
+ fileprefetchhooks(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."""
- fileprefetchhooks(repo, ctx, files)
-
def _performrevert(repo, parents, ctx, actions, interactive=False,
tobackup=None):
"""function that actually perform all the actions computed for revert
More information about the Mercurial-devel
mailing list