tests/test-topic.t
changeset 4060 54eade86ac31
parent 3837 dda5b2134b32
child 4061 ad4194399b47
--- a/tests/test-topic.t	Thu Aug 30 19:13:56 2018 +0800
+++ b/tests/test-topic.t	Thu Aug 30 20:21:17 2018 +0800
@@ -736,10 +736,27 @@
   summary:     start on fran
   
 
+Using revsets in topic()
+  $ tlog() {
+  >   hg log -T '{rev}: {topic}\n' -r "$1"
+  > }
+
+  $ tlog 'topic(head())'
+  9: fran
+  $ tlog 'topic(:)'
+  9: fran
+  $ tlog 'topic(all())'
+  9: fran
+  $ tlog 'topic(topic(fran))'
+  9: fran
+  $ tlog 'topic(wdir())'
+  9: fran
+
 Deactivate the topic.
   $ hg topics
    * fran (1 changesets)
   $ hg topics --clear
+  $ hg log -r 'topic(wdir())'
   $ echo fran? >> beta
   $ hg ci -m 'fran?'
   created new head