Mercurial > hg
comparison tests/test-username-newline.t @ 12301:3a082866422a
tests: unify test-username-newline
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 14 Sep 2010 16:52:32 +0200 |
parents | tests/test-username-newline@9d023ef7b467 |
children | 4134686b83e1 |
comparison
equal
deleted
inserted
replaced
12300:ca31b0b2ac16 | 12301:3a082866422a |
---|---|
1 $ hg init | |
2 $ touch a | |
3 | |
4 $ unset HGUSER | |
5 $ echo "[ui]" >> .hg/hgrc | |
6 $ echo "username= foo" >> .hg/hgrc | |
7 $ echo " bar1" >> .hg/hgrc | |
8 | |
9 $ hg ci -Am m | |
10 adding a | |
11 abort: username 'foo\nbar1' contains a newline | |
12 | |
13 $ rm .hg/hgrc | |
14 | |
15 $ HGUSER=`(echo foo; echo bar2)` hg ci -Am m | |
16 abort: username 'foo\nbar2' contains a newline | |
17 | |
18 $ hg ci -Am m -u "`(echo foo; echo bar3)`" | |
19 transaction abort! | |
20 rollback completed | |
21 abort: username 'foo\nbar3' contains a newline! | |
22 | |
23 $ true | |
24 |