action/test2
changeset 272 f7c64f03cd60
parent 271 c1ceab337505
child 273 7bae88583a53
--- a/action/test2	Fri Dec 17 14:31:50 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-set -e
-
-cd
-
-cat > .ssh/config <<__END__
-Host chroothg
-Hostname localhost
-User hg
-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"
-echo "This push should succeed"
-hg push
-echo "And it did"
-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 "really checking now"
-hg outgoing --template '{desc}' | grep -q WONTPUSH
-echo "done"