##// END OF EJS Templates
help: define list of keywords that should be excluded from non-verbose output...
Yuya Nishihara -
r26369:4799b5c4 default
parent child Browse files
Show More
@@ -14,6 +14,13 b' 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 = [
18 "DEPRECATED",
19 "EXPERIMENTAL",
20 _("DEPRECATED"),
21 _("EXPERIMENTAL"),
22 ]
23
17 def listexts(header, exts, indent=1, showdeprecated=False):
24 def listexts(header, exts, indent=1, showdeprecated=False):
18 '''return a text listing of the given extensions'''
25 '''return a text listing of the given extensions'''
19 rst = []
26 rst = []
@@ -43,9 +50,7 b' def optrst(header, options, verbose):'
43 shortopt, longopt, default, desc = option
50 shortopt, longopt, default, desc = option
44 optlabel = _("VALUE") # default label
51 optlabel = _("VALUE") # default label
45
52
46 if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc or
53 if not verbose and any(w in desc for w in _exclkeywords):
47 "EXPERIMENTAL" in desc or
48 _("EXPERIMENTAL") in desc):
49 continue
54 continue
50
55
51 so = ''
56 so = ''
General Comments 0
You need to be logged in to leave comments. Login now