changeset 32849:de7dc25ecf2e

graphlog: do not look up graphnodetemplate in template paths (BC) ui.graphnodetemplate config should be a literal template as ui.logtemplate is. The use of formatter.gettemplater() is valid only for a template string given by -T/--template option.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 22 Apr 2017 14:53:05 +0900
parents 470820c2418d
children 11e667a8fcba
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat May 06 14:48:47 2017 +0900
+++ b/mercurial/cmdutil.py	Sat Apr 22 14:53:05 2017 +0900
@@ -2292,7 +2292,7 @@
         return templatekw.showgraphnode  # fast path for "{graphnode}"
 
     spec = templater.unquotestring(spec)
-    templ = formatter.gettemplater(ui, 'graphnode', spec)
+    templ = formatter.maketemplater(ui, 'graphnode', spec)
     cache = {}
     if isinstance(displayer, changeset_templater):
         cache = displayer.cache  # reuse cache of slow templates