tests: add more explicit test about empty topic from publishing
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 07 Sep 2017 16:45:53 +0200
changeset 2911 8874e65343a4
parent 2910 e0e8e968560a
child 2912 1341ff3ba4a9
tests: add more explicit test about empty topic from publishing
tests/test-topic-stack.t
--- a/tests/test-topic-stack.t	Fri Sep 01 19:29:04 2017 +0200
+++ b/tests/test-topic-stack.t	Thu Sep 07 16:45:53 2017 +0200
@@ -58,6 +58,16 @@
   t2@ c_b (current)
   t1: c_a
   $ hg phase --public 'topic("other")'
+
+After changing the phase of all the changesets in "other" to public, the topic should still be active, but is empty. We should be better at informating the user about it and displaying good data in this case.
+
+  $ hg topic
+     foo
+   * other
+  $ hg stack
+  ### topic: other
+  ### branch: 
+
   $ hg up foo
   switching to topic foo
   4 files updated, 0 files merged, 0 files removed, 0 files unresolved