equal
deleted
inserted
replaced
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 |