mercurial/help.py
changeset 26415 46af0adb5c37
parent 26414 c44b507e7c78
child 26436 a2291c9c85a1
equal deleted inserted replaced
26414:c44b507e7c78 26415:46af0adb5c37
   189     single documentation block and use it to overwrite the marker in doc.
   189     single documentation block and use it to overwrite the marker in doc.
   190     """
   190     """
   191     entries = []
   191     entries = []
   192     for name in sorted(items):
   192     for name in sorted(items):
   193         text = (items[name].__doc__ or '').rstrip()
   193         text = (items[name].__doc__ or '').rstrip()
   194         if not text:
   194         if (not text
       
   195             or not ui.verbose and any(w in text for w in _exclkeywords)):
   195             continue
   196             continue
   196         text = gettext(text)
   197         text = gettext(text)
   197         if dedent:
   198         if dedent:
   198             text = textwrap.dedent(text)
   199             text = textwrap.dedent(text)
   199         lines = text.splitlines()
   200         lines = text.splitlines()