comparison tests/test-glog-beautifygraph.t @ 45766: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 fc4fb2f17dd4
comparison
equal deleted inserted replaced
45765:ed84a4d48910 45766:1f7c077e0640
2532 \xe2\x94\x82 (esc) 2532 \xe2\x94\x82 (esc)
2533 \xe2\x95\xa7 (esc) 2533 \xe2\x95\xa7 (esc)
2534 2534
2535 node template with changesetprinter: 2535 node template with changesetprinter:
2536 2536
2537 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"' 2537 $ hg log -Gqr 5:7 --config command-templates.graphnode='"{rev}"'
2538 7 7:9febbb9c8b2e 2538 7 7:9febbb9c8b2e
2539 \xe2\x94\x82 (esc) 2539 \xe2\x94\x82 (esc)
2540 6 6:9feeac35a70a 2540 6 6:9feeac35a70a
2541 \xe2\x94\x82\xe2\x95\xb2 (esc) 2541 \xe2\x94\x82\xe2\x95\xb2 (esc)
2542 \xe2\x94\x82 \xe2\x95\xa7 (esc) 2542 \xe2\x94\x82 \xe2\x95\xa7 (esc)
2545 \xe2\x95\xa7 (esc) 2545 \xe2\x95\xa7 (esc)
2546 2546
2547 node template with changesettemplater (shared cache variable): 2547 node template with changesettemplater (shared cache variable):
2548 2548
2549 $ hg log -Gr 5:7 -T '{latesttag % "{rev} {tag}+{distance}"}\n' \ 2549 $ hg log -Gr 5:7 -T '{latesttag % "{rev} {tag}+{distance}"}\n' \
2550 > --config ui.graphnodetemplate='{ifeq(latesttagdistance, 0, "#", graphnode)}' 2550 > --config command-templates.graphnode='{ifeq(latesttagdistance, 0, "#", graphnode)}'
2551 \xe2\x97\x8b 7 foo-bar+1 (esc) 2551 \xe2\x97\x8b 7 foo-bar+1 (esc)
2552 \xe2\x94\x82 (esc) 2552 \xe2\x94\x82 (esc)
2553 # 6 foo-bar+0 2553 # 6 foo-bar+0
2554 \xe2\x94\x82\xe2\x95\xb2 (esc) 2554 \xe2\x94\x82\xe2\x95\xb2 (esc)
2555 \xe2\x94\x82 \xe2\x95\xa7 (esc) 2555 \xe2\x94\x82 \xe2\x95\xa7 (esc)
2558 \xe2\x95\xa7 (esc) 2558 \xe2\x95\xa7 (esc)
2559 2559
2560 label() should just work in node template: 2560 label() should just work in node template:
2561 2561
2562 $ hg log -Gqr 7 --config extensions.color= --color=debug \ 2562 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2563 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}' 2563 > --config command-templates.graphnode='{label("branch.{branch}", rev)}'
2564 [branch.default\xe2\x94\x827] [log.node|7:9febbb9c8b2e] (esc) 2564 [branch.default\xe2\x94\x827] [log.node|7:9febbb9c8b2e] (esc)
2565 \xe2\x94\x82 (esc) 2565 \xe2\x94\x82 (esc)
2566 \xe2\x95\xa7 (esc) 2566 \xe2\x95\xa7 (esc)
2567 2567
2568 $ cd .. 2568 $ cd ..