tests/test-topic.t
changeset 2733 adfbb984ebbb
parent 2731 d39942773163
child 2747 9fd6c8efda5b
--- a/tests/test-topic.t	Fri Jul 14 03:14:27 2017 +0200
+++ b/tests/test-topic.t	Fri Jul 14 00:54:48 2017 +0530
@@ -849,6 +849,13 @@
   abort: no active topic
   (set a current topic or use '--config experimental.enforce-topic=no' to commit without a topic)
   [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.enforce-topic=no' to commit without a topic)
+  [255]
   $ hg ci -m "added a" --config experimental.enforce-topic=no
   $ hg log
   changeset:   0:a154386e50d1