view tests/test-push-validation @ 10458:7fbba0c04f92

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Sun, 14 Feb 2010 13:05:51 +0100
parents 5fc090ba08a6
children b26c4a89a143
line wrap: on
line source

#!/bin/sh

STRIP=`pwd`

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 | sed "s%$STRIP%test-root%"