comparison mercurial/commands.py @ 3292:399c04369a1b

fix bash completion of debug commands; add test for debugcomplete The debugconfig -> showconfig renaming broke things.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 08 Oct 2006 20:27:23 -0300
parents d89e98840b08
children 80654c248793
comparison
equal deleted inserted replaced
3291:0b5d626b354e 3292:399c04369a1b
3135 for a in aliases: 3135 for a in aliases:
3136 if a.startswith(cmd): 3136 if a.startswith(cmd):
3137 found = a 3137 found = a
3138 break 3138 break
3139 if found is not None: 3139 if found is not None:
3140 if aliases[0].startswith("debug"): 3140 if aliases[0].startswith("debug") or found.startswith("debug"):
3141 debugchoice[found] = (aliases, table[e]) 3141 debugchoice[found] = (aliases, table[e])
3142 else: 3142 else:
3143 choice[found] = (aliases, table[e]) 3143 choice[found] = (aliases, table[e])
3144 3144
3145 if not choice and debugchoice: 3145 if not choice and debugchoice: