tests/test-username-newline
author Sune Foldager <cryo@cyanite.org>
Wed, 14 Apr 2010 19:43:19 +0200
changeset 10910 78db9b7d9f65
parent 7035 9d023ef7b467
permissions -rwxr-xr-x
prepush: backed out refactoring It has some problems in corner cases and will fail on a test recently introduced on stable. Will maybe be reintroduced later, in a better version.

#!/bin/sh
#

hg init foo
cd foo
touch a


unset HGUSER
echo "[ui]" >> .hg/hgrc
echo "username= foo" >> .hg/hgrc
echo "          bar1" >> .hg/hgrc

hg ci -Am m

rm .hg/hgrc

HGUSER=`(echo foo; echo bar2)` hg ci -Am m

hg ci -Am m -u "`(echo foo; echo bar3)`"

true