Show More
@@ -2206,6 +2206,7 def _graphnodeformatter(ui, displayer): | |||||
2206 | def formatnode(repo, ctx): |
|
2206 | def formatnode(repo, ctx): | |
2207 | props['ctx'] = ctx |
|
2207 | props['ctx'] = ctx | |
2208 | props['repo'] = repo |
|
2208 | props['repo'] = repo | |
|
2209 | props['ui'] = repo.ui | |||
2209 | props['revcache'] = {} |
|
2210 | props['revcache'] = {} | |
2210 | return templater.stringify(templ('graphnode', **props)) |
|
2211 | return templater.stringify(templ('graphnode', **props)) | |
2211 | return formatnode |
|
2212 | return formatnode |
@@ -2407,4 +2407,11 node template with changeset_templater ( | |||||
2407 | o | 5 null+5 |
|
2407 | o | 5 null+5 | |
2408 | | | |
|
2408 | | | | |
2409 |
|
2409 | |||
|
2410 | label() should just work in node template: | |||
|
2411 | ||||
|
2412 | $ hg log -Gqr 7 --config extensions.color= --color=debug \ | |||
|
2413 | > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}' | |||
|
2414 | [branch.default|7] [log.node|7:02dbb8e276b8] | |||
|
2415 | | | |||
|
2416 | ||||
2410 | $ cd .. |
|
2417 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now