##// END OF EJS Templates
revert: drop the remnant of the prefetchfiles hook
Matt Harbison -
r36158:62719115 default
parent child Browse files
Show More
@@ -2871,8 +2871,8 b' def revert(ui, repo, ctx, parents, *pats'
2871 _revertprefetch(repo, ctx,
2871 _revertprefetch(repo, ctx,
2872 *[actions[name][0] for name in needdata])
2872 *[actions[name][0] for name in needdata])
2873 oplist = [actions[name][0] for name in needdata]
2873 oplist = [actions[name][0] for name in needdata]
2874 _prefetchfiles(repo, ctx,
2874 prefetch = scmutil.fileprefetchhooks
2875 [f for sublist in oplist for f in sublist])
2875 prefetch(repo, ctx, [f for sublist in oplist for f in sublist])
2876 _performrevert(repo, parents, ctx, actions, interactive, tobackup)
2876 _performrevert(repo, parents, ctx, actions, interactive, tobackup)
2877
2877
2878 if targetsubs:
2878 if targetsubs:
@@ -2891,11 +2891,6 b' def _revertprefetchstub(repo, ctx, *file'
2891
2891
2892 _revertprefetch = _revertprefetchstub
2892 _revertprefetch = _revertprefetchstub
2893
2893
2894 def _prefetchfiles(repo, ctx, files):
2895 """Let extensions changing the storage layer prefetch content for any non
2896 merge based command."""
2897 scmutil.fileprefetchhooks(repo, ctx, files)
2898
2899 def _performrevert(repo, parents, ctx, actions, interactive=False,
2894 def _performrevert(repo, parents, ctx, actions, interactive=False,
2900 tobackup=None):
2895 tobackup=None):
2901 """function that actually perform all the actions computed for revert
2896 """function that actually perform all the actions computed for revert
General Comments 0
You need to be logged in to leave comments. Login now