# HG changeset patch # User Aurélien Campéas # Date 1505995527 -7200 # Node ID c62b3776fec38f841b2a2accefded128c15863c2 # Parent d1d47e025dd32703ca299e54b75ac28f45a71dc5 topics/tuto: highlight the behaviour on publish + update And the fact that empty topics vanish if we update out of them. diff -r d1d47e025dd3 -r c62b3776fec3 tests/test-topic-tutorial.t --- 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 ============================