mercurial/help.py
changeset 40412 ab09e797fbed
parent 40295 fa88170c10bb
child 40413 1ddd202c47d9
--- a/mercurial/help.py	Sat Oct 20 00:12:20 2018 +0300
+++ b/mercurial/help.py	Sat Oct 13 05:02:55 2018 -0700
@@ -194,6 +194,8 @@
         return True
     if not ui.verbose and doc and any(w in doc for w in _exclkeywords):
         return True
+    if ui.configbool('help', 'hidden-command.%s' % cmd):
+        return True
     return False
 
 def topicmatch(ui, commands, kw):