mercurial/help.py
changeset 40488 ab09e797fbed
parent 40295 fa88170c10bb
child 40489 1ddd202c47d9
equal deleted inserted replaced
40487:bad46c934c31 40488:ab09e797fbed
   191 
   191 
   192 def filtercmd(ui, cmd, kw, doc):
   192 def filtercmd(ui, cmd, kw, doc):
   193     if not ui.debugflag and cmd.startswith("debug") and kw != "debug":
   193     if not ui.debugflag and cmd.startswith("debug") and kw != "debug":
   194         return True
   194         return True
   195     if not ui.verbose and doc and any(w in doc for w in _exclkeywords):
   195     if not ui.verbose and doc and any(w in doc for w in _exclkeywords):
       
   196         return True
       
   197     if ui.configbool('help', 'hidden-command.%s' % cmd):
   196         return True
   198         return True
   197     return False
   199     return False
   198 
   200 
   199 def topicmatch(ui, commands, kw):
   201 def topicmatch(ui, commands, kw):
   200     """Return help topics matching kw.
   202     """Return help topics matching kw.