Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 45679:65e2b64670b5
errors: name arguments to AmbiguousCommand constructor
Differential Revision: https://phab.mercurial-scm.org/D9165
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Oct 2020 20:45:52 -0700 |
parents | bd2df58366b1 |
children | bb1a988ef4a5 |
line wrap: on
line diff
--- 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: