comparison 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
comparison
equal deleted inserted replaced
3223:73b4e84df0bd 3224:bac69ab0782c
132 TODO: support this 132 TODO: support this
133 $ hg metaedit '.^::.' 133 $ hg metaedit '.^::.'
134 abort: editing multiple revisions without --fold is not currently supported 134 abort: editing multiple revisions without --fold is not currently supported
135 [255] 135 [255]
136 136
137 $ HGEDITOR=cat hg metaedit '.^::.' --fold --note 'folding changesets using metaedit,
138 > and newlines'
139 abort: note cannot contain a newline
140 [255]
137 $ HGEDITOR=cat hg metaedit '.^::.' --fold --note "folding changesets using metaedit" 141 $ HGEDITOR=cat hg metaedit '.^::.' --fold --note "folding changesets using metaedit"
138 HG: This is a fold of 2 changesets. 142 HG: This is a fold of 2 changesets.
139 HG: Commit message of changeset 6. 143 HG: Commit message of changeset 6.
140 144
141 E 145 E