changeset 42358:fa4b13e81f60

commands: drop support for legacy ^cmd registration (API)
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 18 May 2019 19:38:47 -0400
parents 38b7b45627a2
children 832c59d1196e
files mercurial/commands.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sat May 18 19:33:48 2019 -0400
+++ b/mercurial/commands.py	Sat May 18 19:38:47 2019 -0400
@@ -6248,16 +6248,6 @@
 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")