mercurial/commands.py
changeset 335 74b9332faece
parent 333 d60a3060f9e2
child 338 1e091b3293d5
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