equal
deleted
inserted
replaced
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() |