mercurial/help.py
changeset 20822 be87397f98c9
parent 20743 05267e6e94dd
child 20823 3879ac3858ff
--- a/mercurial/help.py	Fri Feb 28 02:09:00 2014 +0100
+++ b/mercurial/help.py	Sat Mar 15 16:14:04 2014 +0100
@@ -311,6 +311,8 @@
         # list of commands
         if name == "shortlist":
             header = _('basic commands:\n\n')
+        elif name == "debug":
+            header = _('debug commands (internal and unsupported):\n\n')
         else:
             header = _('list of commands:\n\n')
 
@@ -326,7 +328,7 @@
             if name == "shortlist" and not f.startswith("^"):
                 continue
             f = f.lstrip("^")
-            if not ui.debugflag and f.startswith("debug"):
+            if not ui.debugflag and f.startswith("debug") and name != "debug":
                 continue
             doc = e[0].__doc__
             if doc and 'DEPRECATED' in doc and not ui.verbose: