diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2154,6 +2154,7 @@ def _graphnodeformatter(ui, displayer): if not spec: return templatekw.showgraphnode # fast path for "{graphnode}" + spec = templater.unquotestring(spec) templ = formatter.gettemplater(ui, 'graphnode', spec) cache = {} if isinstance(displayer, changeset_templater): diff --git a/tests/test-glog.t b/tests/test-glog.t --- a/tests/test-glog.t +++ b/tests/test-glog.t @@ -2398,7 +2398,7 @@ working-directory revision node template with changeset_printer: - $ hg log -Gqr 5:7 --config ui.graphnodetemplate='{rev}' + $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"' 7 7:02dbb8e276b8 | 6 6:fc281d8ff18d