diff mercurial/logcmdutil.py @ 36513:6ad140dc4269

templatekw: extract non-templatekw function as getgraphnode() Prepares for switching to the (context, mapping) API. We still need (repo, ctx) function for the fast path.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 25 Feb 2018 14:28:32 +0900
parents 27cd83152d31
children 69477bac8926
line wrap: on
line diff
--- a/mercurial/logcmdutil.py	Wed Feb 28 16:24:39 2018 +0100
+++ b/mercurial/logcmdutil.py	Sun Feb 25 14:28:32 2018 +0900
@@ -837,7 +837,7 @@
 def _graphnodeformatter(ui, displayer):
     spec = ui.config('ui', 'graphnodetemplate')
     if not spec:
-        return templatekw.showgraphnode  # fast path for "{graphnode}"
+        return templatekw.getgraphnode  # fast path for "{graphnode}"
 
     spec = templater.unquotestring(spec)
     tres = formatter.templateresources(ui)