# HG changeset patch # User Augie Fackler # Date 1526014409 14400 # Node ID f1f8b655da32abb0d51abe6d027997d7ef4d14c5 # Parent d088810c496e4b18c3506b8253667300000dd077 cmdutil: remove deprecated _revertprefetch code (API) diff -r d088810c496e -r f1f8b655da32 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