test-push-validation
22 lines
| 317 B
| text/plain
|
TextLexer
/ tests / test-push-validation
Augie Fackler
|
r10418 | #!/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 | ||||
Patrick Mezard
|
r10469 | hg push 2>&1 | "$TESTDIR/filtertmp.py" | ||