topics/tuto: highlight the behaviour on publish + update
And the fact that empty topics vanish if we update out of them.
--- 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
============================