Mercurial > hg
comparison mercurial/templatekw.py @ 41021:70e3e3da24be stable
templatekw: fix documentation typos
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 04 Jan 2019 21:01:10 -0500 |
parents | 94ca3579e84e |
children | 074c72a38423 |
comparison
equal
deleted
inserted
replaced
41020:fbd5e2f0bba7 | 41021:70e3e3da24be |
---|---|
581 return d | 581 return d |
582 return _hybrid(None, urls, makemap, lambda k: '%s=%s' % (k, urls[k])) | 582 return _hybrid(None, urls, makemap, lambda k: '%s=%s' % (k, urls[k])) |
583 | 583 |
584 @templatekeyword("predecessors", requires={'repo', 'ctx'}) | 584 @templatekeyword("predecessors", requires={'repo', 'ctx'}) |
585 def showpredecessors(context, mapping): | 585 def showpredecessors(context, mapping): |
586 """Returns the list if the closest visible successors. (EXPERIMENTAL)""" | 586 """Returns the list of the closest visible successors. (EXPERIMENTAL)""" |
587 repo = context.resource(mapping, 'repo') | 587 repo = context.resource(mapping, 'repo') |
588 ctx = context.resource(mapping, 'ctx') | 588 ctx = context.resource(mapping, 'ctx') |
589 predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node())) | 589 predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node())) |
590 predecessors = pycompat.maplist(hex, predecessors) | 590 predecessors = pycompat.maplist(hex, predecessors) |
591 | 591 |
619 return statmap.get(path) | 619 return statmap.get(path) |
620 | 620 |
621 @templatekeyword("successorssets", requires={'repo', 'ctx'}) | 621 @templatekeyword("successorssets", requires={'repo', 'ctx'}) |
622 def showsuccessorssets(context, mapping): | 622 def showsuccessorssets(context, mapping): |
623 """Returns a string of sets of successors for a changectx. Format used | 623 """Returns a string of sets of successors for a changectx. Format used |
624 is: [ctx1, ctx2], [ctx3] if ctx has been splitted into ctx1 and ctx2 | 624 is: [ctx1, ctx2], [ctx3] if ctx has been split into ctx1 and ctx2 |
625 while also diverged into ctx3. (EXPERIMENTAL)""" | 625 while also diverged into ctx3. (EXPERIMENTAL)""" |
626 repo = context.resource(mapping, 'repo') | 626 repo = context.resource(mapping, 'repo') |
627 ctx = context.resource(mapping, 'ctx') | 627 ctx = context.resource(mapping, 'ctx') |
628 if not ctx.obsolete(): | 628 if not ctx.obsolete(): |
629 return '' | 629 return '' |