equal
deleted
inserted
replaced
2382 | |
2382 | |
2383 ~ |
2383 ~ |
2384 |
2384 |
2385 node template with changesetprinter: |
2385 node template with changesetprinter: |
2386 |
2386 |
2387 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"' |
2387 $ hg log -Gqr 5:7 --config command-templates.graphnode='"{rev}"' |
2388 7 7:9febbb9c8b2e |
2388 7 7:9febbb9c8b2e |
2389 | |
2389 | |
2390 6 6:9feeac35a70a |
2390 6 6:9feeac35a70a |
2391 |\ |
2391 |\ |
2392 | ~ |
2392 | ~ |
2393 5 5:99b31f1c2782 |
2393 5 5:99b31f1c2782 |
2394 | |
2394 | |
2395 ~ |
2395 ~ |
2396 |
2396 |
|
2397 node template with changesetprinter (legacy config): |
|
2398 |
|
2399 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"' |
|
2400 7 7:9febbb9c8b2e |
|
2401 | |
|
2402 6 6:9feeac35a70a |
|
2403 |\ |
|
2404 | ~ |
|
2405 5 5:99b31f1c2782 |
|
2406 | |
|
2407 ~ |
|
2408 |
2397 node template with changesettemplater (shared cache variable): |
2409 node template with changesettemplater (shared cache variable): |
2398 |
2410 |
2399 $ hg log -Gr 5:7 -T '{latesttag % "{rev} {tag}+{distance}"}\n' \ |
2411 $ hg log -Gr 5:7 -T '{latesttag % "{rev} {tag}+{distance}"}\n' \ |
2400 > --config ui.graphnodetemplate='{ifeq(latesttagdistance, 0, "#", graphnode)}' |
2412 > --config command-templates.graphnode='{ifeq(latesttagdistance, 0, "#", graphnode)}' |
2401 o 7 foo-bar+1 |
2413 o 7 foo-bar+1 |
2402 | |
2414 | |
2403 # 6 foo-bar+0 |
2415 # 6 foo-bar+0 |
2404 |\ |
2416 |\ |
2405 | ~ |
2417 | ~ |
2408 ~ |
2420 ~ |
2409 |
2421 |
2410 label() should just work in node template: |
2422 label() should just work in node template: |
2411 |
2423 |
2412 $ hg log -Gqr 7 --config extensions.color= --color=debug \ |
2424 $ hg log -Gqr 7 --config extensions.color= --color=debug \ |
2413 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}' |
2425 > --config command-templates.graphnode='{label("branch.{branch}", rev)}' |
2414 [branch.default|7] [log.node|7:9febbb9c8b2e] |
2426 [branch.default|7] [log.node|7:9febbb9c8b2e] |
2415 | |
2427 | |
2416 ~ |
2428 ~ |
2417 |
2429 |
2418 $ cd .. |
2430 $ cd .. |