comparison mercurial/logcmdutil.py @ 45789:1f7c077e0640

config: rename ui.graphnodetemplate to command-templates.graphnode Differential Revision: https://phab.mercurial-scm.org/D9246
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 23 Oct 2020 15:27:33 -0700
parents ed84a4d48910
children 0aa118f18d4b
comparison
equal deleted inserted replaced
45788:ed84a4d48910 45789:1f7c077e0640
1109 differ._makehunksfilter = hunksfilter 1109 differ._makehunksfilter = hunksfilter
1110 return smartset.baseset(revs), differ 1110 return smartset.baseset(revs), differ
1111 1111
1112 1112
1113 def _graphnodeformatter(ui, displayer): 1113 def _graphnodeformatter(ui, displayer):
1114 spec = ui.config(b'ui', b'graphnodetemplate') 1114 spec = ui.config(b'command-templates', b'graphnode')
1115 if not spec: 1115 if not spec:
1116 return templatekw.getgraphnode # fast path for "{graphnode}" 1116 return templatekw.getgraphnode # fast path for "{graphnode}"
1117 1117
1118 spec = templater.unquotestring(spec) 1118 spec = templater.unquotestring(spec)
1119 if isinstance(displayer, changesettemplater): 1119 if isinstance(displayer, changesettemplater):