changeset 34657:bfb6fd93b637

help: hide template keywords of obsolescence as they are still experimental
author Yuya Nishihara <yuya@tcha.org>
date Thu, 12 Oct 2017 21:48:02 +0900
parents eb7fffdc6e5b
children dbe1f5118864
files mercurial/templatekw.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatekw.py	Thu Oct 12 21:42:42 2017 +0900
+++ b/mercurial/templatekw.py	Thu Oct 12 21:48:02 2017 +0900
@@ -648,8 +648,7 @@
 
 @templatekeyword('obsolete')
 def showobsolete(repo, ctx, templ, **args):
-    """String. Whether the changeset is obsolete.
-    """
+    """String. Whether the changeset is obsolete. (EXPERIMENTAL)"""
     if ctx.obsolete():
         return 'obsolete'
     return ''
@@ -670,7 +669,7 @@
 
 @templatekeyword("predecessors")
 def showpredecessors(repo, ctx, **args):
-    """Returns the list if the closest visible successors."""
+    """Returns the list if the closest visible successors. (EXPERIMENTAL)"""
     predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node()))
     predecessors = map(hex, predecessors)
 
@@ -682,7 +681,7 @@
 def showsuccessorssets(repo, ctx, **args):
     """Returns a string of sets of successors for a changectx. Format used
     is: [ctx1, ctx2], [ctx3] if ctx has been splitted into ctx1 and ctx2
-    while also diverged into ctx3."""
+    while also diverged into ctx3. (EXPERIMENTAL)"""
     if not ctx.obsolete():
         return ''
     args = pycompat.byteskwargs(args)