mercurial/commands.py
changeset 3990 96e21337dc03
parent 3972 356e20d46b34
child 4016 a195f11ed1a2
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3053,9 +3053,10 @@ def load_extensions(ui):
         if uisetup:
             uisetup(ui)
         cmdtable = getattr(mod, 'cmdtable', {})
-        for t in cmdtable:
-            if t in table:
-                ui.warn(_("module %s overrides %s\n") % (name, t))
+        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)
 
 def parseconfig(config):