changeset 335:74b9332faece

Fix misrecognition of commands -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fix misrecognition of commands manifest hash: e8a19b922c3129c37050589edfb83d742c08a808 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCr38xywK+sNU5EO8RApRbAJ9CcBFI5MQiilZZaucVGX84tyFwvACfaYL1 tgI+dsdbAAiFhW8eEPYX7ts= =Zu9L -----END PGP SIGNATURE-----
author mpm@selenic.com
date Tue, 14 Jun 2005 17:06:57 -0800
parents 290574209284
children aa6cbde09f72
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)