Show More
@@ -837,7 +837,7 b' def getlinerangerevs(repo, userrevs, opt' | |||
|
837 | 837 | def _graphnodeformatter(ui, displayer): |
|
838 | 838 | spec = ui.config('ui', 'graphnodetemplate') |
|
839 | 839 | if not spec: |
|
840 |
return templatekw. |
|
|
840 | return templatekw.getgraphnode # fast path for "{graphnode}" | |
|
841 | 841 | |
|
842 | 842 | spec = templater.unquotestring(spec) |
|
843 | 843 | tres = formatter.templateresources(ui) |
@@ -528,6 +528,9 b' def showfiles(**args):' | |||
|
528 | 528 | def showgraphnode(repo, ctx, **args): |
|
529 | 529 | """String. The character representing the changeset node in an ASCII |
|
530 | 530 | revision graph.""" |
|
531 | return getgraphnode(repo, ctx) | |
|
532 | ||
|
533 | def getgraphnode(repo, ctx): | |
|
531 | 534 | wpnodes = repo.dirstate.parents() |
|
532 | 535 | if wpnodes[1] == nullid: |
|
533 | 536 | wpnodes = wpnodes[:1] |
General Comments 0
You need to be logged in to leave comments.
Login now