mercurial/commands.py
changeset 28391 73905484ef70
parent 28359 f6b5b041c6c9
child 28402 7f77e71e5d7e
--- a/mercurial/commands.py	Tue Mar 08 00:20:08 2016 -0800
+++ b/mercurial/commands.py	Tue Mar 08 23:04:53 2016 +0900
@@ -7147,3 +7147,12 @@
             for i, name in enumerate(names):
                 ui.write("  %-*s  %s  %s\n" %
                          (maxnamelen, name, place[i], vers[i]))
+
+def loadcmdtable(ui, name, cmdtable):
+    """Load command functions from specified cmdtable
+    """
+    overrides = [cmd for cmd in cmdtable if cmd in table]
+    if overrides:
+        ui.warn(_("extension '%s' overrides commands: %s\n")
+                % (name, " ".join(overrides)))
+    table.update(cmdtable)