changeset 1520:95ee4f12fbd9

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'.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 09 Nov 2005 22:31:18 +0100
parents 5b19dea9d4fd
children c85e5bbfd141
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Nov 09 12:52:05 2005 -0800
+++ b/mercurial/commands.py	Wed Nov 09 22:31:18 2005 +0100
@@ -2388,6 +2388,7 @@
                     raise AmbiguousCommand(cmd)
                 else:
                     choice = aliases, table[e]
+                    break
     if choice:
         return choice