mercurial/commands.py
changeset 3294 80654c248793
parent 3293 a225055b3b59
parent 3292 399c04369a1b
child 3342 d9b3d3d34749
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3146,7 +3146,7 @@ def findpossible(ui, cmd):
                     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])