Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 24871:117b9a101f71 stable
help: also hide options marked EXPERIMENTAL
Similar to DEPRECATED, add a way to indicate that options are EXPERIMENTAL.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 27 Apr 2015 15:12:41 -0700 |
parents | 76c0b4cfa039 |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
24870:4ec40a4db64a | 24871:117b9a101f71 |
---|---|
41 shortopt, longopt, default, desc, optlabel = option | 41 shortopt, longopt, default, desc, optlabel = option |
42 else: | 42 else: |
43 shortopt, longopt, default, desc = option | 43 shortopt, longopt, default, desc = option |
44 optlabel = _("VALUE") # default label | 44 optlabel = _("VALUE") # default label |
45 | 45 |
46 if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc): | 46 if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc or |
47 "EXPERIMENTAL" in desc or | |
48 _("EXPERIMENTAL") in desc): | |
47 continue | 49 continue |
48 | 50 |
49 so = '' | 51 so = '' |
50 if shortopt: | 52 if shortopt: |
51 so = '-' + shortopt | 53 so = '-' + shortopt |