changeset 36542 | 6ad140dc4269 |
parent 36531 | 169ac2bb3c9c |
child 36543 | 7b74afec6772 |
--- a/mercurial/templatekw.py Wed Feb 28 16:24:39 2018 +0100 +++ b/mercurial/templatekw.py Sun Feb 25 14:28:32 2018 +0900 @@ -528,6 +528,9 @@ def showgraphnode(repo, ctx, **args): """String. The character representing the changeset node in an ASCII revision graph.""" + return getgraphnode(repo, ctx) + +def getgraphnode(repo, ctx): wpnodes = repo.dirstate.parents() if wpnodes[1] == nullid: wpnodes = wpnodes[:1]