##// END OF EJS Templates
tests: unify test-dispatch
tests: unify test-dispatch

File last commit:

r10469:b26c4a89 stable
r12157:88250a46 default
Show More
test-push-validation
22 lines | 317 B | text/plain | TextLexer
/ tests / test-push-validation
#!/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"