Mercurial > evolve
diff tests/test-topic.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 | 4aabc5c8b2af |
children | eb928f5728c4 |
line wrap: on
line diff
--- a/tests/test-topic.t Thu May 24 18:57:46 2018 +0200 +++ b/tests/test-topic.t Wed May 23 11:37:37 2018 +0200 @@ -278,6 +278,7 @@ $ echo topic work >> alpha $ hg ci -m 'start on narf' active topic 'narf' grew its first changeset + (see 'hg help topics' for more information) $ hg co .^ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg topic fran @@ -290,6 +291,7 @@ $ echo >> fran work >> beta $ hg ci -m 'start on fran' active topic 'fran' grew its first changeset + (see 'hg help topics' for more information) $ hg co narf switching to topic narf 2 files updated, 0 files merged, 0 files removed, 0 files unresolved @@ -447,6 +449,7 @@ marked working directory as topic: query $ hg ci -m 'what is narf, pinky?' active topic 'query' grew its first changeset + (see 'hg help topics' for more information) $ hg log -Gl2 @ changeset: 5:c01515cfc331 | tag: tip @@ -832,10 +835,12 @@ $ hg topic topic1990 $ hg ci -m "Added b" --config devel.default-date="631152000 0" --user "foo" active topic 'topic1990' grew its first changeset + (see 'hg help topics' for more information) $ hg add c $ hg topic topic2010 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" --user "bar" active topic 'topic2010' grew its first changeset + (see 'hg help topics' for more information) $ hg log -G @ changeset: 3:76b16af75125