tests/test-push-validation
author Martin Geisler <mg@lazybytes.net>
Tue, 17 Aug 2010 16:53:03 +0200
changeset 11916 d1ea16ca6520
parent 10469 b26c4a89a143
permissions -rwxr-xr-x
tests: unify test-subrepo-svn

#!/bin/sh

hg init test
cd test
cat > .hg/hgrc <<EOF
[server]
validate=1
EOF
echo alpha > alpha
echo beta > beta
hg addr
hg ci -m 1

cd ..
hg clone test test-clone

cd test-clone
cp .hg/store/data/beta.i tmp
echo blah >> beta
hg ci -m '2 (corrupt)'
mv tmp .hg/store/data/beta.i
hg push 2>&1 | "$TESTDIR/filtertmp.py"