diff -r a225055b3b59 -r 80654c248793 mercurial/commands.py --- a/mercurial/commands.py Mon Oct 09 15:44:20 2006 +0200 +++ b/mercurial/commands.py Mon Oct 09 15:52:37 2006 +0200 @@ -3146,7 +3146,7 @@ found = a break if found is not None: - if aliases[0].startswith("debug"): + if aliases[0].startswith("debug") or found.startswith("debug"): debugchoice[found] = (aliases, table[e]) else: choice[found] = (aliases, table[e])