Show More
@@ -6139,6 +6139,16 b' def version_(ui, **opts):' | |||||
6139 | def loadcmdtable(ui, name, cmdtable): |
|
6139 | def loadcmdtable(ui, name, cmdtable): | |
6140 | """Load command functions from specified cmdtable |
|
6140 | """Load command functions from specified cmdtable | |
6141 | """ |
|
6141 | """ | |
|
6142 | cmdtable = cmdtable.copy() | |||
|
6143 | for cmd in list(cmdtable): | |||
|
6144 | if not cmd.startswith('^'): | |||
|
6145 | continue | |||
|
6146 | ui.deprecwarn("old-style command registration '%s' in extension '%s'" | |||
|
6147 | % (cmd, name), '4.8') | |||
|
6148 | entry = cmdtable.pop(cmd) | |||
|
6149 | entry[0].helpbasic = True | |||
|
6150 | cmdtable[cmd[1:]] = entry | |||
|
6151 | ||||
6142 | overrides = [cmd for cmd in cmdtable if cmd in table] |
|
6152 | overrides = [cmd for cmd in cmdtable if cmd in table] | |
6143 | if overrides: |
|
6153 | if overrides: | |
6144 | ui.warn(_("extension '%s' overrides commands: %s\n") |
|
6154 | ui.warn(_("extension '%s' overrides commands: %s\n") |
General Comments 0
You need to be logged in to leave comments.
Login now