diff -r 290574209284 -r 74b9332faece mercurial/commands.py --- a/mercurial/commands.py Tue Jun 14 14:04:15 2005 -0800 +++ b/mercurial/commands.py Tue Jun 14 17:06:57 2005 -0800 @@ -627,7 +627,7 @@ def find(cmd): i = None for e in table.keys(): - if re.match(e + "$", cmd): + if re.match("(%s)$" % e, cmd): return table[e] raise UnknownCommand(cmd)