Mercurial > hg
comparison tests/test-username-newline @ 7035:9d023ef7b467
forbid username with '\n' at the changelog level
It was already forbidden for ui.username() but no verification were
made for username passed through the commandline.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 13 Sep 2008 17:46:09 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7026:3e49127bcec3 | 7035:9d023ef7b467 |
---|---|
1 #!/bin/sh | |
2 # | |
3 | |
4 hg init foo | |
5 cd foo | |
6 touch a | |
7 | |
8 | |
9 unset HGUSER | |
10 echo "[ui]" >> .hg/hgrc | |
11 echo "username= foo" >> .hg/hgrc | |
12 echo " bar1" >> .hg/hgrc | |
13 | |
14 hg ci -Am m | |
15 | |
16 rm .hg/hgrc | |
17 | |
18 HGUSER=`(echo foo; echo bar2)` hg ci -Am m | |
19 | |
20 hg ci -Am m -u "`(echo foo; echo bar3)`" | |
21 | |
22 true |