--- a/tests/test-topic.t Mon Dec 24 17:47:27 2018 +0100
+++ b/tests/test-topic.t Tue Jan 22 12:54:43 2019 -0500
@@ -818,7 +818,40 @@
s0^ Add file delta (base current)
$ hg topics --age
- * fran (1970-01-01 by test)
+ * fran (1970-01-01 by test, 1 changesets)
+
+ $ cd ..
+
+Relation subscript in revsets
+=============================
+
+ $ hg init more-than-one-commit-per-topic
+ $ cd more-than-one-commit-per-topic
+ $ cat > .hg/hgrc << EOF
+ > [phases]
+ > publish=false
+ > EOF
+
+ $ echo 0 > foo
+ $ hg ci -qAm 0
+ $ hg topic featureA
+ marked working directory as topic: featureA
+ $ echo 1 > foo
+ $ hg ci -qm 1
+ $ echo 2 > foo
+ $ hg ci -qm 2
+ $ echo 3 > foo
+ $ hg ci -qm 3
+ $ hg topic --clear
+ $ echo 4 > foo
+ $ hg ci -qm 4
+
+ $ tlog 'all()'
+ 0:
+ 1: featureA
+ 2: featureA
+ 3: featureA
+ 4:
$ cd ..
@@ -862,7 +895,7 @@
$ hg topic topic1970 --rev 0
switching to topic topic1970
- changed topic on 1 changes
+ changed topic on 1 changesets to "topic1970"
$ hg add b
$ hg topic topic1990
@@ -902,18 +935,23 @@
* topic2010 (1 changesets)
$ hg topics --age
- * topic2010 (2010-01-01 by bar)
- topic1990 (1990-01-01 by foo)
- topic1970 (1970-01-01 by test)
+ * topic2010 (2010-01-01 by bar, 1 changesets)
+ topic1990 (1990-01-01 by foo, 1 changesets)
+ topic1970 (1970-01-01 by test, 1 changesets)
+
+ $ hg topics --age --verbose
+ * topic2010 (2010-01-01 by bar, on branch: default, 1 changesets)
+ topic1990 (1990-01-01 by foo, on branch: default, 1 changesets)
+ topic1970 (1970-01-01 by test, on branch: default, 1 changesets)
$ hg up topic1970
switching to topic topic1970
0 files updated, 0 files merged, 2 files removed, 0 files unresolved
$ hg topics --age
- topic2010 (2010-01-01 by bar)
- topic1990 (1990-01-01 by foo)
- * topic1970 (1970-01-01 by test)
+ topic2010 (2010-01-01 by bar, 1 changesets)
+ topic1990 (1990-01-01 by foo, 1 changesets)
+ * topic1970 (1970-01-01 by test, 1 changesets)
$ hg topics --age random
abort: cannot use --age while setting a topic