tests/test-topic.t
changeset 4339 0f015fe4f71f
parent 4323 482992803db6
child 4356 a71f2271ed76
child 4379 2893b127923b
--- a/tests/test-topic.t	Thu Jan 10 17:30:01 2019 +0100
+++ b/tests/test-topic.t	Wed Dec 26 14:52:07 2018 +0800
@@ -823,8 +823,8 @@
 
   $ cd ..
 
-Stack relation subscript in revsets
-===================================
+Relation subscript in revsets
+=============================
 
   $ hg init more-than-one-commit-per-topic
   $ cd more-than-one-commit-per-topic
@@ -854,6 +854,24 @@
   3: featureA
   4: 
 
+topic subscript relation
+
+  $ tlog 'featureA'
+  3: featureA
+  $ tlog 'featureA#topic[0]'
+  3: featureA
+
+  $ tlog '2#t[-2]'
+  $ tlog '2#t[-1]'
+  1: featureA
+  $ tlog '2#t[0]'
+  2: featureA
+  $ tlog '2#t[1]'
+  3: featureA
+  $ tlog '2#t[2]'
+
+stack subscript relation
+
   $ hg stack
   ### target: default (branch)
   s2@ 4 (current)