# HG changeset patch # User Yuya Nishihara # Date 1488018496 -32400 # Node ID 3eceeede26e9f0f5bd314f66dc75ec6d1ce8bb4e # Parent cde72a195f3207f9b55099be28276d631e34ab22 graphlog: optionally strip quotes from graphnode template (BC) For consistency with the other template options. diff -r cde72a195f32 -r 3eceeede26e9 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Apr 17 23:53:19 2017 +0900 +++ b/mercurial/cmdutil.py Sat Feb 25 19:28:16 2017 +0900 @@ -2154,6 +2154,7 @@ 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 -r cde72a195f32 -r 3eceeede26e9 tests/test-glog.t --- a/tests/test-glog.t Mon Apr 17 23:53:19 2017 +0900 +++ b/tests/test-glog.t Sat Feb 25 19:28:16 2017 +0900 @@ -2398,7 +2398,7 @@ 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