tests/test-username-newline
author Steve Borho <steve@borho.org>
Tue, 29 Dec 2009 23:59:41 -0600
changeset 10156 c31ac3f7fd8f
parent 7035 9d023ef7b467
permissions -rwxr-xr-x
windows: expand environment vars in find_exe This allows us to use ${ProgramFiles} in our [merge-tools] sections so we can provide locale safe program paths.

#!/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