diff 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
line wrap: on
line diff
--- a/tests/test-topic-tutorial.t	Wed Jan 10 10:54:02 2018 +0000
+++ b/tests/test-topic-tutorial.t	Tue Jan 09 23:42:57 2018 +0530
@@ -575,6 +575,18 @@
       }
 #endif
 
+There exists a template keyword named "topic" which can be used
+
+  $ hg log -GT "{rev}:{node|short} {topic}\n {desc}"
+  @  5:2d50db8b5b4c food
+  |   adding fruits
+  o  4:4011b46eeb33 food
+  |   adding condiments
+  o  3:6104862e8b84
+  |   Adding clothes
+  o  0:38da43f0a2ea
+      Shopping list
+
 The topic information will disappear when we publish the changesets:
 
   $ hg topics