comparison mercurial/cmdutil.py @ 32045:3eceeede26e9

graphlog: optionally strip quotes from graphnode template (BC) For consistency with the other template options.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Feb 2017 19:28:16 +0900
parents 2406dbba49bd
children 5b630f2ccb4e
comparison
equal deleted inserted replaced
32044:cde72a195f32 32045:3eceeede26e9
2152 def _graphnodeformatter(ui, displayer): 2152 def _graphnodeformatter(ui, displayer):
2153 spec = ui.config('ui', 'graphnodetemplate') 2153 spec = ui.config('ui', 'graphnodetemplate')
2154 if not spec: 2154 if not spec:
2155 return templatekw.showgraphnode # fast path for "{graphnode}" 2155 return templatekw.showgraphnode # fast path for "{graphnode}"
2156 2156
2157 spec = templater.unquotestring(spec)
2157 templ = formatter.gettemplater(ui, 'graphnode', spec) 2158 templ = formatter.gettemplater(ui, 'graphnode', spec)
2158 cache = {} 2159 cache = {}
2159 if isinstance(displayer, changeset_templater): 2160 if isinstance(displayer, changeset_templater):
2160 cache = displayer.cache # reuse cache of slow templates 2161 cache = displayer.cache # reuse cache of slow templates
2161 props = templatekw.keywords.copy() 2162 props = templatekw.keywords.copy()