dev/chroot-test/action/test1
changeset 275 2e781d52f76e
parent 272 f7c64f03cd60
child 302 020082c44cdf
--- a/dev/chroot-test/action/test1	Fri Dec 17 18:54:38 2010 +0000
+++ b/dev/chroot-test/action/test1	Fri Dec 17 20:45:16 2010 +0000
@@ -28,14 +28,19 @@
 echo "Push"
 hg push
 cd ..
-mkdir realrepo
+hg init realrepo
 cd realrepo
-hg init .
 mkdir denied
 echo "This is a file" > content
 echo "This is a file not everyone can write to" > denied/cantwrite
-hg add content denied/cantwrite
+hg init nested
+echo "This is a file in a nested repo" > nested/content
+hg add -R nested nested/content
+hg commit -u test1 -R nested -m "Add files to the subrepo"
+echo "nested = nested" > .hgsub
+hg add content denied/cantwrite .hgsub
 hg commit -u test1 -m "Add files to the repo"
 echo "Pushing changes"
 hg clone . ssh://chroothg/real/project
+hg clone nested ssh://chroothg/real/project/nested
 echo "Done for user test1"