Mercurial > evolve
comparison tests/test-topic-shelve.t @ 3769:1bc4b0807c37
topic: display a hint pointing at help when a topic becomes non-empty
This is an attempt at avoiding "mistakes" by new users of topics when
they pull a topic and publish its changesets while being checked out. In
this case, the topic will become empty but still be active; however, if
this is a "foreign" topic, the user will not likely want to keep it
active for the next commit operation. So we add a hint message pointing
at general help of "topics" command so that they can eventually do
something and learn about "hg topics --clear".
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 23 May 2018 11:37:37 +0200 |
parents | f43a310c4338 |
children | fb4801478d5d |
comparison
equal
deleted
inserted
replaced
3768:482195001997 | 3769:1bc4b0807c37 |
---|---|
17 $ hg topic | 17 $ hg topic |
18 * testing-shelve (0 changesets) | 18 * testing-shelve (0 changesets) |
19 $ hg ci -m "First commit" -A | 19 $ hg ci -m "First commit" -A |
20 adding a | 20 adding a |
21 active topic 'testing-shelve' grew its first changeset | 21 active topic 'testing-shelve' grew its first changeset |
22 (see 'hg help topics' for more information) | |
22 $ hg topic | 23 $ hg topic |
23 * testing-shelve (1 changesets) | 24 * testing-shelve (1 changesets) |
24 $ echo " World" >> a | 25 $ echo " World" >> a |
25 $ hg stack | 26 $ hg stack |
26 ### topic: testing-shelve | 27 ### topic: testing-shelve |