##// END OF EJS Templates
commands: drop support for legacy ^cmd registration (API)
Matt Harbison -
r42523:fa4b13e8 default
parent child Browse files
Show More
@@ -6248,16 +6248,6 b' def version_(ui, **opts):'
6248 def loadcmdtable(ui, name, cmdtable):
6248 def loadcmdtable(ui, name, cmdtable):
6249 """Load command functions from specified cmdtable
6249 """Load command functions from specified cmdtable
6250 """
6250 """
6251 cmdtable = cmdtable.copy()
6252 for cmd in list(cmdtable):
6253 if not cmd.startswith('^'):
6254 continue
6255 ui.deprecwarn("old-style command registration '%s' in extension '%s'"
6256 % (cmd, name), '4.8')
6257 entry = cmdtable.pop(cmd)
6258 entry[0].helpbasic = True
6259 cmdtable[cmd[1:]] = entry
6260
6261 overrides = [cmd for cmd in cmdtable if cmd in table]
6251 overrides = [cmd for cmd in cmdtable if cmd in table]
6262 if overrides:
6252 if overrides:
6263 ui.warn(_("extension '%s' overrides commands: %s\n")
6253 ui.warn(_("extension '%s' overrides commands: %s\n")
General Comments 0
You need to be logged in to leave comments. Login now