Allow ambiguous command shortcut if only an alias for the same command.
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 09 Nov 2005 22:31:18 +0100
changeset 1520 95ee4f12fbd9
parent 1519 5b19dea9d4fd
child 1525 c85e5bbfd141
Allow ambiguous command shortcut if only an alias for the same command. Currently the only example for this is 'hg o' or 'hg ou' as a shortcut for 'hg out' and 'hg outgoing'.
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2388,6 +2388,7 @@ def find(cmd):
                     raise AmbiguousCommand(cmd)
                 else:
                     choice = aliases, table[e]
+                    break
     if choice:
         return choice