Mercurial > evolve
comparison tests/test-topic-tutorial.t @ 3384:2b06f144b6e0
topics: add a new templatekeyword `topic`
This patch adds a new templatekeyword topic which can be used to list the topic
of the changeset when using commands which supports templating.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 09 Jan 2018 23:42:57 +0530 |
parents | 4f75e0a5d82d |
children | e1f3e43a50a4 |
comparison
equal
deleted
inserted
replaced
3383:733e01473ec2 | 3384:2b06f144b6e0 |
---|---|
573 4 -> 5 [arrowhead=none, | 573 4 -> 5 [arrowhead=none, |
574 penwidth=2.0]; | 574 penwidth=2.0]; |
575 } | 575 } |
576 #endif | 576 #endif |
577 | 577 |
578 There exists a template keyword named "topic" which can be used | |
579 | |
580 $ hg log -GT "{rev}:{node|short} {topic}\n {desc}" | |
581 @ 5:2d50db8b5b4c food | |
582 | adding fruits | |
583 o 4:4011b46eeb33 food | |
584 | adding condiments | |
585 o 3:6104862e8b84 | |
586 | Adding clothes | |
587 o 0:38da43f0a2ea | |
588 Shopping list | |
589 | |
578 The topic information will disappear when we publish the changesets: | 590 The topic information will disappear when we publish the changesets: |
579 | 591 |
580 $ hg topics | 592 $ hg topics |
581 * food (2 changesets) | 593 * food (2 changesets) |
582 | 594 |