diff tests/test-topicmode.t @ 3027:b220e2f5ebd5

topic: update the topic-mode hint The hint is now shorter and reference the documentation. That should provide more concise output with more details for user who seeks it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 01 Oct 2017 09:10:48 +0100
parents e814c553ef32
children c2d1f49ac7e2
line wrap: on
line diff
--- a/tests/test-topicmode.t	Sun Oct 01 09:05:42 2017 +0100
+++ b/tests/test-topicmode.t	Sun Oct 01 09:10:48 2017 +0100
@@ -17,14 +17,14 @@
   $ hg add a
   $ hg ci -m "Added a"
   abort: no active topic
-  (set a current topic or use '--config experimental.topic-mode=off' to commit without a topic)
+  (see 'hg help -e topic.topic-mode' for details)
   [255]
 
 (same test, checking we abort before the editor)
 
   $ EDITOR=cat hg ci -m "Added a" --edit
   abort: no active topic
-  (set a current topic or use '--config experimental.topic-mode=off' to commit without a topic)
+  (see 'hg help -e topic.topic-mode' for details)
   [255]
   $ hg ci -m "added a" --config experimental.topic-mode=off
   $ hg log
@@ -52,11 +52,13 @@
   $ hg add a
   $ hg ci -m "Added a"
   warning: new draft commit without topic
+  (see 'hg help -e topic.topic-mode' for details) (no-eol)
 
 (same test, checking we abort before the editor)
 
   $ EDITOR=cat hg ci --amend -m "Added a" --edit
   warning: new draft commit without topic
+  (see 'hg help -e topic.topic-mode' for details) (no-eol)
   $ hg ci --amend -m "added a'" --config experimental.topic-mode=off
   $ hg log
   changeset:   2:2e862d8b5eff
@@ -101,6 +103,7 @@
   (branch merge, don't forget to commit)
   $ hg commit -m "merge mytopic"
   warning: new draft commit without topic
+  (see 'hg help -e topic.topic-mode' for details) (no-eol)
 
   $ hg log -G
   @    changeset:   3:676a445d1c09
@@ -163,7 +166,7 @@
   (branch merge, don't forget to commit)
   $ hg commit -m "merge mytopic"
   abort: no active topic
-  (set a current topic or use '--config experimental.topic-mode=off' to commit without a topic)
+  (see 'hg help -e topic.topic-mode' for details)
   [255]
 
   $ hg log -G