mercurial/commands.py
changeset 1520 95ee4f12fbd9
parent 1519 5b19dea9d4fd
child 1525 c85e5bbfd141
--- 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