##// END OF EJS Templates
tests: fix the detection of dirstate-v2 in hghave.py
tests: fix the detection of dirstate-v2 in hghave.py

File last commit:

r46732:17a69535 default
r50515:8cd39c20 stable
Show More
test-username-newline.t
27 lines | 523 B | text/troff | Tads3Lexer
/ tests / test-username-newline.t
$ 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
[50]