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

File last commit:

r10469:b26c4a89 stable
r11850:54dbf16b 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"