mercurial/cmdutil.py
changeset 5915 d0576d065993
parent 5843 83c354c4d529
child 5976 9f1e6ab76069
equal deleted inserted replaced
5914:8e7796a990c5 5915:d0576d065993
    48 
    48 
    49 def findcmd(ui, cmd, table):
    49 def findcmd(ui, cmd, table):
    50     """Return (aliases, command table entry) for command string."""
    50     """Return (aliases, command table entry) for command string."""
    51     choice = findpossible(ui, cmd, table)
    51     choice = findpossible(ui, cmd, table)
    52 
    52 
    53     if choice.has_key(cmd):
    53     if cmd in choice:
    54         return choice[cmd]
    54         return choice[cmd]
    55 
    55 
    56     if len(choice) > 1:
    56     if len(choice) > 1:
    57         clist = choice.keys()
    57         clist = choice.keys()
    58         clist.sort()
    58         clist.sort()