tests/test-username-newline
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 05 Apr 2010 18:13:20 +0200
branchstable
changeset 10836 e5aaa4543289
parent 7035 9d023ef7b467
permissions -rwxr-xr-x
dirstate: fix in memory dirstate entries for 1-second race Only the on-disk file was modified, we need to modify the in-memory dirstate as well.

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