# HG changeset patch # User Matt Harbison # Date 1518327627 18000 # Node ID 62719115875d292c5f5966155dc0ea7a2a51cbcc # Parent 3a90159c2c2e42feee5f641de2e49b93dcf888a7 revert: drop the remnant of the prefetchfiles hook diff -r 3a90159c2c2e -r 62719115875d mercurial/cmdutil.py --- 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