[PATCH 3 of 5] cmdutil: drop deprecated log helper methods

Augie Fackler raf at durin42.com
Fri May 11 00:55:26 EDT 2018


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1526014452 14400
#      Fri May 11 00:54:12 2018 -0400
# Node ID 6e8329574cb80603f0087c95b5b7e1d82cda9ba5
# Parent  f50c58e6f11a59266b7fc0d370d474dca84c3945
cmdutil: drop deprecated log helper methods

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -3254,23 +3254,3 @@ def wrongtooltocontinue(repo, task):
     if after[1]:
         hint = after[0]
     raise error.Abort(_('no %s in progress') % task, hint=hint)
-
-class changeset_printer(logcmdutil.changesetprinter):
-
-    def __init__(self, ui, *args, **kwargs):
-        msg = ("'cmdutil.changeset_printer' is deprecated, "
-               "use 'logcmdutil.logcmdutil'")
-        ui.deprecwarn(msg, "4.6")
-        super(changeset_printer, self).__init__(ui, *args, **kwargs)
-
-def displaygraph(ui, *args, **kwargs):
-    msg = ("'cmdutil.displaygraph' is deprecated, "
-           "use 'logcmdutil.displaygraph'")
-    ui.deprecwarn(msg, "4.6")
-    return logcmdutil.displaygraph(ui, *args, **kwargs)
-
-def show_changeset(ui, *args, **kwargs):
-    msg = ("'cmdutil.show_changeset' is deprecated, "
-           "use 'logcmdutil.changesetdisplayer'")
-    ui.deprecwarn(msg, "4.6")
-    return logcmdutil.changesetdisplayer(ui, *args, **kwargs)


More information about the Mercurial-devel mailing list