# HG changeset patch # User mpm@selenic.com # Date 2005-06-15 01:06:57 # Node ID 74b9332faece4a3933a16acc2c70b0ee9fc96c73 # Parent 290574209284b915a122dff0c48f2ca54230f6f0 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----- diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -627,7 +627,7 @@ norepo = "init branch help debugindex de 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)