action/test2
changeset 268 24145a4eb6fc
parent 266 7cc208cbf2be
child 269 a09f1bc9a6cf
--- a/action/test2	Wed Dec 02 18:52:02 2009 +0000
+++ b/action/test2	Tue Dec 15 13:52:23 2009 +0000
@@ -11,10 +11,19 @@
 Port 2222
 __END__
 
+echo "Pulling real project"
 hg clone ssh://chroothg/real/project
 cd project
 echo "and I'm adding something" >> content
 hg commit -u test2 -m "Added something to the file"
 hg push
-
-
+echo "This should fail" >> special/cantwrite
+hg commit -u test2 -m "WONTPUSH"
+# Fail only if this succeeds
+echo "About to do bad push"
+hg push && false
+echo "OK, checking that didn't push"
+hg outgoing --template '{desc}'
+echo "really checking now"
+hg outgoing --template '{desc}' | grep -q WONTPUSH
+echo "done"