action/test2
changeset 269 a09f1bc9a6cf
parent 268 24145a4eb6fc
child 270 28b355b7390e
equal deleted inserted replaced
268:24145a4eb6fc 269:a09f1bc9a6cf
    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"