action/test2
changeset 270 28b355b7390e
parent 269 a09f1bc9a6cf
equal deleted inserted replaced
269:a09f1bc9a6cf 270:28b355b7390e
    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" >> allowedhere/content
    17 echo "and I'm adding something" >> 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 echo "This push should succeed"
    20 hg push
    20 hg push
    21 echo "And it did"
    21 echo "And it did"
    22 echo "This should fail" >> cantwrite
    22 echo "This should fail" >> denied/cantwrite
    23 hg commit -u test2 -m "WONTPUSH"
    23 hg commit -u test2 -m "WONTPUSH"
    24 # Fail only if this succeeds
    24 # Fail only if this succeeds
    25 echo "About to do bad push"
    25 echo "About to do bad push"
    26 hg push && false
    26 hg push && false
    27 echo "OK, checking that didn't push"
       
    28 hg outgoing --template '{desc}'
       
    29 echo "really checking now"
    27 echo "really checking now"
    30 hg outgoing --template '{desc}' | grep -q WONTPUSH
    28 hg outgoing --template '{desc}' | grep -q WONTPUSH
    31 echo "done"
    29 echo "done"