comparison tests/test-topic-flow-single-head.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 62b60fc1983d
comparison
equal deleted inserted replaced
3768:482195001997 3769:1bc4b0807c37
98 98
99 $ hg topic foo 99 $ hg topic foo
100 marked working directory as topic: foo 100 marked working directory as topic: foo
101 $ mkcommit c_dF0 101 $ mkcommit c_dF0
102 active topic 'foo' grew its first changeset 102 active topic 'foo' grew its first changeset
103 (see 'hg help topics' for more information)
103 $ hg push 104 $ hg push
104 pushing to $TESTTMP/single-head-server 105 pushing to $TESTTMP/single-head-server
105 searching for changes 106 searching for changes
106 adding changesets 107 adding changesets
107 adding manifests 108 adding manifests
114 0 files updated, 0 files merged, 3 files removed, 0 files unresolved 115 0 files updated, 0 files merged, 3 files removed, 0 files unresolved
115 $ hg topic bar 116 $ hg topic bar
116 marked working directory as topic: bar 117 marked working directory as topic: bar
117 $ mkcommit c_dG0 118 $ mkcommit c_dG0
118 active topic 'bar' grew its first changeset 119 active topic 'bar' grew its first changeset
120 (see 'hg help topics' for more information)
119 $ hg push 121 $ hg push
120 pushing to $TESTTMP/single-head-server 122 pushing to $TESTTMP/single-head-server
121 searching for changes 123 searching for changes
122 adding changesets 124 adding changesets
123 adding manifests 125 adding manifests