mercurial/help.py
changeset 26370 44cc9f63a2f1
parent 26369 4799b5c4aaf4
child 26371 51b309ce6c7d
equal deleted inserted replaced
26369:4799b5c4aaf4 26370:44cc9f63a2f1
    13 import encoding, util, minirst
    13 import encoding, util, minirst
    14 import cmdutil
    14 import cmdutil
    15 import hgweb.webcommands as webcommands
    15 import hgweb.webcommands as webcommands
    16 
    16 
    17 _exclkeywords = [
    17 _exclkeywords = [
    18     "DEPRECATED",
    18     "(DEPRECATED)",
    19     "EXPERIMENTAL",
    19     "(EXPERIMENTAL)",
    20     _("DEPRECATED"),
    20     # i18n: "(DEPRECATED)" is a keyword, must be translated consistently
    21     _("EXPERIMENTAL"),
    21     _("(DEPRECATED)"),
       
    22     # i18n: "(EXPERIMENTAL)" is a keyword, must be translated consistently
       
    23     _("(EXPERIMENTAL)"),
    22     ]
    24     ]
    23 
    25 
    24 def listexts(header, exts, indent=1, showdeprecated=False):
    26 def listexts(header, exts, indent=1, showdeprecated=False):
    25     '''return a text listing of the given extensions'''
    27     '''return a text listing of the given extensions'''
    26     rst = []
    28     rst = []
   337                 continue
   339                 continue
   338             f = f.lstrip("^")
   340             f = f.lstrip("^")
   339             if not ui.debugflag and f.startswith("debug") and name != "debug":
   341             if not ui.debugflag and f.startswith("debug") and name != "debug":
   340                 continue
   342                 continue
   341             doc = e[0].__doc__
   343             doc = e[0].__doc__
   342             if doc and 'DEPRECATED' in doc and not ui.verbose:
   344             if doc and '(DEPRECATED)' in doc and not ui.verbose:
   343                 continue
   345                 continue
   344             doc = gettext(doc)
   346             doc = gettext(doc)
   345             if not doc:
   347             if not doc:
   346                 doc = _("(no help text available)")
   348                 doc = _("(no help text available)")
   347             h[f] = doc.splitlines()[0].rstrip()
   349             h[f] = doc.splitlines()[0].rstrip()