--- 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