diff mercurial/help.py @ 20822:be87397f98c9

help: let 'hg help debug' show the list of secret debug commands The names of the debug commands are not easy to remember and they are not easy to find.
author Mads Kiilerich <madski@unity3d.com>
date Sat, 15 Mar 2014 16:14:04 +0100
parents 05267e6e94dd
children 3879ac3858ff
line wrap: on
line diff
--- 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: