cmdutil: remove deprecated _revertprefetch code (API)
authorAugie Fackler <augie@google.com>
Fri, 11 May 2018 00:53:29 -0400
changeset 38000 f1f8b655da32
parent 37999 d088810c496e
child 38001 fb0de0bcd297
cmdutil: remove deprecated _revertprefetch code (API)
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Fri May 11 00:50:21 2018 -0400
+++ b/mercurial/cmdutil.py	Fri May 11 00:53:29 2018 -0400
@@ -2997,12 +2997,6 @@
 
         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 @@
                     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