mercurial/cmdutil.py
changeset 32831 de7dc25ecf2e
parent 32765 041d976b662a
child 32832 11e667a8fcba
equal deleted inserted replaced
32830:470820c2418d 32831:de7dc25ecf2e
  2290     spec = ui.config('ui', 'graphnodetemplate')
  2290     spec = ui.config('ui', 'graphnodetemplate')
  2291     if not spec:
  2291     if not spec:
  2292         return templatekw.showgraphnode  # fast path for "{graphnode}"
  2292         return templatekw.showgraphnode  # fast path for "{graphnode}"
  2293 
  2293 
  2294     spec = templater.unquotestring(spec)
  2294     spec = templater.unquotestring(spec)
  2295     templ = formatter.gettemplater(ui, 'graphnode', spec)
  2295     templ = formatter.maketemplater(ui, 'graphnode', spec)
  2296     cache = {}
  2296     cache = {}
  2297     if isinstance(displayer, changeset_templater):
  2297     if isinstance(displayer, changeset_templater):
  2298         cache = displayer.cache  # reuse cache of slow templates
  2298         cache = displayer.cache  # reuse cache of slow templates
  2299     props = templatekw.keywords.copy()
  2299     props = templatekw.keywords.copy()
  2300     props['templ'] = templ
  2300     props['templ'] = templ