##// END OF EJS Templates
Fix test-share and test-subrepo under Windows
Fix test-share and test-subrepo under Windows

File last commit:

r10418:5fc090ba default
r10468:2250fc37 stable
Show More
test-push-validation
24 lines | 332 B | text/plain | TextLexer
/ tests / test-push-validation
#!/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%"