tests: add a test for newline in obsnote
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 04 Dec 2017 17:16:01 +0530
changeset 3224 bac69ab0782c
parent 3223 73b4e84df0bd
child 3225 28fb347a5bf8
tests: add a test for newline in obsnote
tests/test-metaedit.t
--- a/tests/test-metaedit.t	Mon Dec 04 15:50:32 2017 +0530
+++ b/tests/test-metaedit.t	Mon Dec 04 17:16:01 2017 +0530
@@ -134,6 +134,10 @@
   abort: editing multiple revisions without --fold is not currently supported
   [255]
 
+  $ HGEDITOR=cat hg metaedit '.^::.' --fold --note 'folding changesets using metaedit,
+  > and newlines'
+  abort: note cannot contain a newline
+  [255]
   $ HGEDITOR=cat hg metaedit '.^::.' --fold --note "folding changesets using metaedit"
   HG: This is a fold of 2 changesets.
   HG: Commit message of changeset 6.