changeset 2967:c62b3776fec3

topics/tuto: highlight the behaviour on publish + update And the fact that empty topics vanish if we update out of them.
author Aurélien Campéas
date Thu, 21 Sep 2017 14:05:27 +0200
parents d1d47e025dd3
children 946b1baa8c38
files tests/test-topic-tutorial.t
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-topic-tutorial.t	Thu Sep 21 13:04:19 2017 +0200
+++ b/tests/test-topic-tutorial.t	Thu Sep 21 14:05:27 2017 +0200
@@ -583,6 +583,15 @@
   $ hg topic
    * food
 
+The topic still exists, and any new commit will be in the topic. But
+note that it is now devoid of any commit.
+
+  $ hg topic --list
+  ### topic: food
+  ### branch: default
+  (stack is empty)
+  t0^ adding fruits (base)
+
   $ hg log --graph
   @  changeset:   5:2d50db8b5b4c
   |  tag:         tip
@@ -664,9 +673,17 @@
       }
 #endif
 
+If we update to the *default* head, we will leave the topic behind,
+and since it is commit-less, it will vanish.
+
   $ hg update default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
+From there, the topic has vanished.
+
+  $ hg topic
+
+
 Working with Multiple Topics
 ============================