##// END OF EJS Templates
help: hide template keywords of obsolescence as they are still experimental
Yuya Nishihara -
r34658:bfb6fd93 default
parent child Browse files
Show More
@@ -648,8 +648,7 b' def shownode(repo, ctx, templ, **args):'
648
648
649 @templatekeyword('obsolete')
649 @templatekeyword('obsolete')
650 def showobsolete(repo, ctx, templ, **args):
650 def showobsolete(repo, ctx, templ, **args):
651 """String. Whether the changeset is obsolete.
651 """String. Whether the changeset is obsolete. (EXPERIMENTAL)"""
652 """
653 if ctx.obsolete():
652 if ctx.obsolete():
654 return 'obsolete'
653 return 'obsolete'
655 return ''
654 return ''
@@ -670,7 +669,7 b' def showpeerurls(repo, **args):'
670
669
671 @templatekeyword("predecessors")
670 @templatekeyword("predecessors")
672 def showpredecessors(repo, ctx, **args):
671 def showpredecessors(repo, ctx, **args):
673 """Returns the list if the closest visible successors."""
672 """Returns the list if the closest visible successors. (EXPERIMENTAL)"""
674 predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node()))
673 predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node()))
675 predecessors = map(hex, predecessors)
674 predecessors = map(hex, predecessors)
676
675
@@ -682,7 +681,7 b' def showpredecessors(repo, ctx, **args):'
682 def showsuccessorssets(repo, ctx, **args):
681 def showsuccessorssets(repo, ctx, **args):
683 """Returns a string of sets of successors for a changectx. Format used
682 """Returns a string of sets of successors for a changectx. Format used
684 is: [ctx1, ctx2], [ctx3] if ctx has been splitted into ctx1 and ctx2
683 is: [ctx1, ctx2], [ctx3] if ctx has been splitted into ctx1 and ctx2
685 while also diverged into ctx3."""
684 while also diverged into ctx3. (EXPERIMENTAL)"""
686 if not ctx.obsolete():
685 if not ctx.obsolete():
687 return ''
686 return ''
688 args = pycompat.byteskwargs(args)
687 args = pycompat.byteskwargs(args)
General Comments 0
You need to be logged in to leave comments. Login now