tests/test-remove
author Vadim Gelfer <vadim.gelfer@gmail.com>
Fri, 31 Mar 2006 10:37:25 -0800
changeset 2029 d436b21b20dc
parent 1953 379ab45b91b7
child 2180 82385773df6c
permissions -rwxr-xr-x
rewrite revert command. fix issues 93, 123, 147. new version does these things: - saves backup copies of modified files (issue 147) - prints output like other commands, and errors when files not found (issue 123) - marks files added/removed (issue 93)

#!/bin/sh

hg init a
cd a
echo a > foo
hg add foo
hg commit -m 1 -d "1000000 0"
rm foo
hg remove foo
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