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'.
--- 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