changeset 1442:6a219f8089f9

evolve: better error message when command is Ambiguous Having more data help the user.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 23 Jun 2015 18:16:21 -0700
parents a4abe588d77f
children 6c122c975125
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Wed May 20 16:35:45 2015 -0700
+++ b/hgext/evolve.py	Tue Jun 23 18:16:21 2015 -0700
@@ -414,7 +414,8 @@
             if not matchingevolvecommands:
                 raise error.Abort(_('unknown command: %s') % cmd)
             elif len(matchingevolvecommands) > 1:
-                raise error.Abort(_('ambiguous command specification: %s') % cmd)
+                raise error.Abort(_('ambiguous command specification: "%s" matches %r')
+                                  % (cmd, matchingevolvecommands))
             else:
                 whitelist.add(matchingevolvecommands[0])
         for disabledcmd in set(cmdtable) - whitelist: