[PATCH 2 of 3] commands: drop support for legacy ^cmd registration (API)
Matt Harbison
mharbison72 at gmail.com
Sat May 18 20:53:31 EDT 2019
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1558222727 14400
# Sat May 18 19:38:47 2019 -0400
# Node ID fa4b13e81f60c925c3565f1c4df19ec18e3a0a58
# Parent 38b7b45627a21fa8f9de20d4f173510cf614859f
commands: drop support for legacy ^cmd registration (API)
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -6248,16 +6248,6 @@ def version_(ui, **opts):
def loadcmdtable(ui, name, cmdtable):
"""Load command functions from specified cmdtable
"""
- cmdtable = cmdtable.copy()
- for cmd in list(cmdtable):
- if not cmd.startswith('^'):
- continue
- ui.deprecwarn("old-style command registration '%s' in extension '%s'"
- % (cmd, name), '4.8')
- entry = cmdtable.pop(cmd)
- entry[0].helpbasic = True
- cmdtable[cmd[1:]] = entry
-
overrides = [cmd for cmd in cmdtable if cmd in table]
if overrides:
ui.warn(_("extension '%s' overrides commands: %s\n")
More information about the Mercurial-devel
mailing list