test-committer
28 lines
| 565 B
| text/plain
|
TextLexer
/ tests / test-committer
Andrew Thompson
|
r2104 | #!/bin/sh | ||
unset HGUSER | ||||
EMAIL="My Name <myname@example.com>" | ||||
export EMAIL | ||||
hg init test | ||||
cd test | ||||
touch asdf | ||||
hg add asdf | ||||
hg commit -d '1000000 0' -m commit-1 | ||||
hg tip | ||||
Benoit Boissinot
|
r3466 | |||
unset EMAIL | ||||
Benoit Boissinot
|
r3721 | echo 1234 > asdf | ||
Benoit Boissinot
|
r3466 | hg commit -d '1000000 0' -u "foo@bar.com" -m commit-1 | ||
hg tip | ||||
echo "[ui]" >> .hg/hgrc | ||||
echo "username = foobar <foo@bar.com>" >> .hg/hgrc | ||||
echo 12 > asdf | ||||
hg commit -d '1000000 0' -m commit-1 | ||||
hg tip | ||||
echo 1 > asdf | ||||
hg commit -d '1000000 0' -u "foo@bar.com" -m commit-1 | ||||
hg tip | ||||
Benoit Boissinot
|
r3721 | echo 123 > asdf | ||
rm .hg/hgrc | ||||
Thomas Arendsen Hein
|
r3722 | hg commit -d '1000000 0' -m commit-1 2>&1 | sed -e "s/'[^']*'/user@host/" | ||