diff tests/test-topic.t @ 2988:62201935e1a7

topics/ui: detect and signal when an empty changeset becomes non-empty
author Aurélien Campéas
date Tue, 26 Sep 2017 12:39:11 +0200
parents 4746b92cc1f8
children 725b660d9886
line wrap: on
line diff
--- a/tests/test-topic.t	Fri Sep 22 18:01:29 2017 +0200
+++ b/tests/test-topic.t	Tue Sep 26 12:39:11 2017 +0200
@@ -150,6 +150,7 @@
 
   $ echo topic work >> alpha
   $ hg ci -m 'start on narf'
+  active topic 'narf' grew its first changeset
   $ hg co .^
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg topic fran
@@ -161,6 +162,7 @@
   fran
   $ echo >> fran work >> beta
   $ hg ci -m 'start on fran'
+  active topic 'fran' grew its first changeset
   $ hg co narf
   switching to topic narf
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -317,6 +319,7 @@
   $ hg topic query
   marked working directory as topic: query
   $ hg ci -m 'what is narf, pinky?'
+  active topic 'query' grew its first changeset
   $ hg log -Gl2
   @  changeset:   5:c01515cfc331
   |  tag:         tip
@@ -476,7 +479,6 @@
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
-  active topic 'query' is now empty
   (run 'hg heads' to see heads)
   $ hg topics
      fran
@@ -736,6 +738,7 @@
   $ hg topic watwat
   marked working directory as topic: watwat
   $ hg ci --amend
+  active topic 'watwat' grew its first changeset
   $ hg log -Gr 'draft()'
   @  changeset:   15:6c40a4c21bbe
   |  tag:         tip
@@ -794,6 +797,7 @@
 
   $ hg topic changewat
   $ hg topics --rev '13::17' --current
+  active topic 'changewat' grew its 2 first changesets
   changed topic on 2 changes
 
   $ hg log -Gr 'draft()'
@@ -846,6 +850,7 @@
 
   $ hg topics --rev 't1::' changewut
   switching to topic changewut
+  active topic 'changewat' is now empty
   changed topic on 3 changes
 
   $ hg log -Gr 'draft()'
@@ -947,9 +952,11 @@
   $ hg add b
   $ hg topic topic1990
   $ hg ci -m "Added b" --config devel.default-date="631152000 0"
+  active topic 'topic1990' grew its first changeset
   $ hg add c
   $ hg topic topic2010
   $ hg ci -m "Added c" --config devel.default-date="1262304000 0"
+  active topic 'topic2010' grew its first changeset
 
   $ hg log -G
   @  changeset:   3:9048b194797d