Mercurial > evolve
diff tests/test-topic-push.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 | f7129e3d5a38 |
children | 537fd9a86c06 cbfd36046969 |
line wrap: on
line diff
--- a/tests/test-topic-push.t Thu May 24 18:57:46 2018 +0200 +++ b/tests/test-topic-push.t Wed May 23 11:37:37 2018 +0200 @@ -132,6 +132,7 @@ $ hg add ddd $ hg commit -m 'CD' active topic 'babar' grew its first changeset + (see 'hg help topics' for more information) $ hg log -G # keep track of phase because I saw some strange bug during developement @ 4 default babar draft CD | @@ -245,6 +246,7 @@ $ hg add eee $ hg commit -m 'CE' active topic 'celeste' grew its first changeset + (see 'hg help topics' for more information) $ hg log -G # keep track of phase because I saw some strange bug during developement @ 5 default celeste draft CE | @@ -440,6 +442,7 @@ marked working directory as topic: topicA $ hg commit -m 'CA' active topic 'topicA' grew its first changeset + (see 'hg help topics' for more information) $ hg up 'desc(CBASE)' 0 files updated, 0 files merged, 1 files removed, 0 files unresolved $ echo aaa > bbb @@ -448,6 +451,7 @@ marked working directory as topic: topicB $ hg commit -m 'CB' active topic 'topicB' grew its first changeset + (see 'hg help topics' for more information) $ cd .. $ hg push -R repoA repoB pushing to repoB