action/test2
changeset 268 24145a4eb6fc
parent 266 7cc208cbf2be
child 269 a09f1bc9a6cf
equal deleted inserted replaced
267:4f24892b33fe 268:24145a4eb6fc
     9 Hostname localhost
     9 Hostname localhost
    10 User hg
    10 User hg
    11 Port 2222
    11 Port 2222
    12 __END__
    12 __END__
    13 
    13 
       
    14 echo "Pulling real project"
    14 hg clone ssh://chroothg/real/project
    15 hg clone ssh://chroothg/real/project
    15 cd project
    16 cd project
    16 echo "and I'm adding something" >> content
    17 echo "and I'm adding something" >> content
    17 hg commit -u test2 -m "Added something to the file"
    18 hg commit -u test2 -m "Added something to the file"
    18 hg push
    19 hg push
    19 
    20 echo "This should fail" >> special/cantwrite
    20 
    21 hg commit -u test2 -m "WONTPUSH"
       
    22 # Fail only if this succeeds
       
    23 echo "About to do bad push"
       
    24 hg push && false
       
    25 echo "OK, checking that didn't push"
       
    26 hg outgoing --template '{desc}'
       
    27 echo "really checking now"
       
    28 hg outgoing --template '{desc}' | grep -q WONTPUSH
       
    29 echo "done"