Mercurial > evolve
comparison hgext3rd/evolve/templatekw.py @ 2600:e987b403d047
template: fix precursors documentation
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 16 Jun 2017 17:14:11 +0200 |
parents | df4a1b02308f |
children | 20c1e035101b |
comparison
equal
deleted
inserted
replaced
2599:df4a1b02308f | 2600:e987b403d047 |
---|---|
63 else: | 63 else: |
64 stack.append(precnodeid) | 64 stack.append(precnodeid) |
65 | 65 |
66 @eh.templatekw("precursors") | 66 @eh.templatekw("precursors") |
67 def shownextvisibleprecursors(repo, ctx, **args): | 67 def shownextvisibleprecursors(repo, ctx, **args): |
68 """Returns a string containing the list if the closest successors | 68 """Returns a string containing the list of the closest precursors |
69 displayed | |
70 """ | 69 """ |
71 precursors = sorted(closestprecursors(repo, ctx.node())) | 70 precursors = sorted(closestprecursors(repo, ctx.node())) |
72 precursors = [node.hex(p) for p in precursors] | 71 precursors = [node.hex(p) for p in precursors] |
73 | 72 |
74 # <= hg-4.1 requires an explicite gen. | 73 # <= hg-4.1 requires an explicite gen. |