diff tests/test-metaedit.t @ 3224:bac69ab0782c

tests: add a test for newline in obsnote
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 04 Dec 2017 17:16:01 +0530
parents 73b4e84df0bd
children 4303a46b4167 cfe31185ad07
line wrap: on
line diff
--- 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.