# HG changeset patch # User Yuya Nishihara # Date 2017-04-22 05:53:05 # Node ID de7dc25ecf2e823311fb46a8b0a474a58ededa6a # Parent 470820c2418d4427ac3790cfa957f475a2710527 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. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2292,7 +2292,7 @@ def _graphnodeformatter(ui, displayer): 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