comparison mercurial/commands.py @ 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 d60a3060f9e2
children 1e091b3293d5
comparison
equal deleted inserted replaced
334:290574209284 335:74b9332faece
625 norepo = "init branch help debugindex debugindexdot" 625 norepo = "init branch help debugindex debugindexdot"
626 626
627 def find(cmd): 627 def find(cmd):
628 i = None 628 i = None
629 for e in table.keys(): 629 for e in table.keys():
630 if re.match(e + "$", cmd): 630 if re.match("(%s)$" % e, cmd):
631 return table[e] 631 return table[e]
632 632
633 raise UnknownCommand(cmd) 633 raise UnknownCommand(cmd)
634 634
635 class SignalInterrupt(Exception): pass 635 class SignalInterrupt(Exception): pass