tests/test-pull
author Vadim Gelfer <vadim.gelfer@gmail.com>
Fri, 31 Mar 2006 10:37:25 -0800
changeset 2029 d436b21b20dc
parent 1929 85daa4e03b4c
child 2570 83cfd95eafb5
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

mkdir test
cd test
echo foo>foo
hg init
hg addremove
hg commit -m 1
hg verify
hg serve -p 20059 -d --pid-file=hg.pid
cd ..

http_proxy= hg clone http://localhost:20059/ copy
cd copy
hg verify
hg co
cat foo
hg manifest
hg pull

kill `cat ../test/hg.pid`