--- a/action/test1 Tue Dec 15 13:52:23 2009 +0000
+++ b/action/test1 Tue Dec 15 14:28:27 2009 +0000
@@ -17,8 +17,8 @@
cd hgadmin
cat > access.conf <<__END__
-read user=restricted/** file=special/**
-write user=restricted/**
+write user=restricted/** file=allowedhere/**
+read user=restricted/**
__END__
mkdir -p keys/restricted
cp /home/test2/.ssh/id_rsa.pub keys/restricted/test2
@@ -31,11 +31,11 @@
mkdir realrepo
cd realrepo
hg init .
-echo "This is a file" > content
-mkdir special
-echo "This is a file not everyone can write to" > special/cantwrite
-hg add content special/cantwrite
-hg commit -u test1 -m "Add a file to the repo"
+mkdir allowedhere
+echo "This is a file" > allowedhere/content
+echo "This is a file not everyone can write to" > cantwrite
+hg add allowedhere/content cantwrite
+hg commit -u test1 -m "Add files to the repo"
echo "Pushing changes"
hg clone . ssh://chroothg/real/project
echo "Done for user test1"