changeset 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 28fb347a5bf8
files tests/test-metaedit.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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.