mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
e0e01cbc81
Summary: This broke a bunch of tests. Revert it and re-enable all the tests. Reviewed By: DurhamG Differential Revision: D19665042 fbshipit-source-id: c3c17e3ac7e2ea028be5b5836bc8349cdf56184e
30 lines
542 B
Perl
30 lines
542 B
Perl
#chg-compatible
|
|
|
|
$ 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
|
|
|
|
[255]
|
|
$ rm .hg/hgrc
|
|
|
|
$ HGUSER=`(echo foo; echo bar2)` hg ci -Am m
|
|
adding a
|
|
abort: username 'foo\nbar2' contains a newline
|
|
|
|
[255]
|
|
$ hg ci -Am m -u "`(echo foo; echo bar3)`"
|
|
adding a
|
|
transaction abort!
|
|
rollback completed
|
|
abort: username 'foo\nbar3' contains a newline!
|
|
[255]
|
|
|