test-username-newline.t
27 lines
| 525 B
| text/troff
|
Tads3Lexer
/ tests / test-username-newline.t
Adrian Buehlmann
|
r12301 | $ hg init | ||
$ touch a | ||||
$ unset HGUSER | ||||
$ echo "[ui]" >> .hg/hgrc | ||||
$ echo "username= foo" >> .hg/hgrc | ||||
$ echo " bar1" >> .hg/hgrc | ||||
$ hg ci -Am m | ||||
adding a | ||||
abort: username 'foo\nbar1' contains a newline | ||||
Matt Mackall
|
r12316 | [255] | ||
Adrian Buehlmann
|
r12301 | $ rm .hg/hgrc | ||
$ HGUSER=`(echo foo; echo bar2)` hg ci -Am m | ||||
Martin von Zweigbergk
|
r33619 | adding a | ||
Adrian Buehlmann
|
r12301 | abort: username 'foo\nbar2' contains a newline | ||
Matt Mackall
|
r12316 | [255] | ||
Adrian Buehlmann
|
r12301 | $ hg ci -Am m -u "`(echo foo; echo bar3)`" | ||
Martin von Zweigbergk
|
r33619 | adding a | ||
Adrian Buehlmann
|
r12301 | transaction abort! | ||
rollback completed | ||||
abort: username 'foo\nbar3' contains a newline! | ||||
Matt Mackall
|
r12316 | [255] | ||
Adrian Buehlmann
|
r12301 | |||