tests/test-remove
author Thomas Arendsen Hein <thomas@intevation.de>
Sun, 14 May 2006 18:24:32 +0200
changeset 2280 09ed44225571
parent 2180 82385773df6c
child 2309 b2f37c7026ca
permissions -rwxr-xr-x
On Windows look for mercurial.ini in $USERPROFILE, too, if available as os.path.expanduser('~') does not always yield a useful directory. Based on a patch from Edouard Gomez <ed.gomez@free.fr>

#!/bin/sh

hg init a
cd a
echo a > foo
hg add foo
hg commit -m 1 -d "1000000 0"
hg remove
rm foo
hg remove foo
hg revert
rm foo
hg remove --after
hg commit -m 2 -d "1000000 0"
hg export 0
hg export 1
hg log -p -r 0
hg log -p -r 1

cd ..
hg clone a b