##// END OF EJS Templates
help: unify handling of DEPRECATED/EXPERIMENTAL keywords...
Yuya Nishihara -
r26371:51b309ce default
parent child Browse files
Show More
@@ -29,7 +29,7 b' def listexts(header, exts, indent=1, sho'
29 if exts:
29 if exts:
30 rst.append('\n%s\n\n' % header)
30 rst.append('\n%s\n\n' % header)
31 for name, desc in sorted(exts.iteritems()):
31 for name, desc in sorted(exts.iteritems()):
32 if '(DEPRECATED)' in desc and not showdeprecated:
32 if not showdeprecated and any(w in desc for w in _exclkeywords):
33 continue
33 continue
34 rst.append('%s:%s: %s\n' % (' ' * indent, name, desc))
34 rst.append('%s:%s: %s\n' % (' ' * indent, name, desc))
35 return rst
35 return rst
@@ -341,7 +341,7 b' def help_(ui, name, unknowncmd=False, fu'
341 if not ui.debugflag and f.startswith("debug") and name != "debug":
341 if not ui.debugflag and f.startswith("debug") and name != "debug":
342 continue
342 continue
343 doc = e[0].__doc__
343 doc = e[0].__doc__
344 if doc and '(DEPRECATED)' in doc and not ui.verbose:
344 if not ui.verbose and doc and any(w in doc for w in _exclkeywords):
345 continue
345 continue
346 doc = gettext(doc)
346 doc = gettext(doc)
347 if not doc:
347 if not doc:
General Comments 0
You need to be logged in to leave comments. Login now