mercurial/dispatch.py
changeset 45679 65e2b64670b5
parent 45678 bd2df58366b1
child 45680 bb1a988ef4a5
--- a/mercurial/dispatch.py	Tue Oct 06 20:37:35 2020 -0700
+++ b/mercurial/dispatch.py	Tue Oct 06 20:45:52 2020 -0700
@@ -489,7 +489,7 @@
     except error.AmbiguousCommand as inst:
         ui.warn(
             _(b"hg: command '%s' is ambiguous:\n    %s\n")
-            % (inst.args[0], b" ".join(inst.args[1]))
+            % (inst.prefix, b" ".join(inst.matches))
         )
     except error.CommandError as inst:
         if inst.command: