mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
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.
This commit is contained in:
parent
849d320dfa
commit
8712d0ee3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user