help: hide template keywords of obsolescence as they are still experimental
authorYuya Nishihara <yuya@tcha.org>
Thu, 12 Oct 2017 21:48:02 +0900
changeset 34657 bfb6fd93b637
parent 34656 eb7fffdc6e5b
child 34658 dbe1f5118864
help: hide template keywords of obsolescence as they are still experimental
mercurial/templatekw.py
--- 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)