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