##// END OF EJS Templates
graphlog: optionally strip quotes from graphnode template (BC)...
Yuya Nishihara -
r32045:3eceeede default
parent child Browse files
Show More
@@ -2154,6 +2154,7 b' def _graphnodeformatter(ui, displayer):'
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):
@@ -2398,7 +2398,7 b' working-directory revision'
2398
2398
2399 node template with changeset_printer:
2399 node template with changeset_printer:
2400
2400
2401 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='{rev}'
2401 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2402 7 7:02dbb8e276b8
2402 7 7:02dbb8e276b8
2403 |
2403 |
2404 6 6:fc281d8ff18d
2404 6 6:fc281d8ff18d
General Comments 0
You need to be logged in to leave comments. Login now