--- a/action/test2 Tue Dec 15 14:28:27 2009 +0000
+++ b/action/test2 Tue Dec 15 15:35:50 2009 +0000
@@ -14,18 +14,16 @@
echo "Pulling real project"
hg clone ssh://chroothg/real/project
cd project
-echo "and I'm adding something" >> allowedhere/content
+echo "and I'm adding something" >> content
hg commit -u test2 -m "Added something to the file"
echo "This push should succeed"
hg push
echo "And it did"
-echo "This should fail" >> cantwrite
+echo "This should fail" >> denied/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"