tests/test-topic-tutorial.t
changeset 3384 2b06f144b6e0
parent 3377 4f75e0a5d82d
child 3411 e1f3e43a50a4
--- 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