equal
deleted
inserted
replaced
12 __END__ |
12 __END__ |
13 |
13 |
14 echo "Pulling real project" |
14 echo "Pulling real project" |
15 hg clone ssh://chroothg/real/project |
15 hg clone ssh://chroothg/real/project |
16 cd project |
16 cd project |
17 echo "and I'm adding something" >> content |
17 echo "and I'm adding something" >> allowedhere/content |
18 hg commit -u test2 -m "Added something to the file" |
18 hg commit -u test2 -m "Added something to the file" |
|
19 echo "This push should succeed" |
19 hg push |
20 hg push |
20 echo "This should fail" >> special/cantwrite |
21 echo "And it did" |
|
22 echo "This should fail" >> cantwrite |
21 hg commit -u test2 -m "WONTPUSH" |
23 hg commit -u test2 -m "WONTPUSH" |
22 # Fail only if this succeeds |
24 # Fail only if this succeeds |
23 echo "About to do bad push" |
25 echo "About to do bad push" |
24 hg push && false |
26 hg push && false |
25 echo "OK, checking that didn't push" |
27 echo "OK, checking that didn't push" |