diff 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
line wrap: on
line diff
--- a/mercurial/help.py	Tue Apr 28 10:19:46 2015 -0700
+++ b/mercurial/help.py	Mon Apr 27 15:12:41 2015 -0700
@@ -43,7 +43,9 @@
             shortopt, longopt, default, desc = option
             optlabel = _("VALUE") # default label
 
-        if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc):
+        if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc or
+                            "EXPERIMENTAL" in desc or
+                            _("EXPERIMENTAL") in desc):
             continue
 
         so = ''