mercurial/cmdutil.py
changeset 32045 3eceeede26e9
parent 32005 2406dbba49bd
child 32046 5b630f2ccb4e
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()