Comments
Patch
@@ -2997,12 +2997,6 @@ def revert(ui, repo, ctx, parents, *pats
if not opts.get('dry_run'):
needdata = ('revert', 'add', 'undelete')
- if _revertprefetch is not _revertprefetchstub:
- ui.deprecwarn("'cmdutil._revertprefetch' is deprecated, "
- "add a callback to 'scmutil.fileprefetchhooks'",
- '4.6', stacklevel=1)
- _revertprefetch(repo, ctx,
- *[actions[name][0] for name in needdata])
oplist = [actions[name][0] for name in needdata]
prefetch = scmutil.prefetchfiles
matchfiles = scmutil.matchfiles
@@ -3021,12 +3015,6 @@ def revert(ui, repo, ctx, parents, *pats
raise error.Abort("subrepository '%s' does not exist in %s!"
% (sub, short(ctx.node())))
-def _revertprefetchstub(repo, ctx, *files):
- """Stub method for detecting extension wrapping of _revertprefetch(), to
- issue a deprecation warning."""
-
-_revertprefetch = _revertprefetchstub
-
def _performrevert(repo, parents, ctx, actions, interactive=False,
tobackup=None):
"""function that actually perform all the actions computed for revert