dev/chroot-test/action/test1
changeset 275 2e781d52f76e
parent 272 f7c64f03cd60
child 302 020082c44cdf
equal deleted inserted replaced
274:ec60311ce2a6 275:2e781d52f76e
    26 hg add keys/restricted/test2 access.conf
    26 hg add keys/restricted/test2 access.conf
    27 hg commit -u test1 -m "Added user test2"
    27 hg commit -u test1 -m "Added user test2"
    28 echo "Push"
    28 echo "Push"
    29 hg push
    29 hg push
    30 cd ..
    30 cd ..
    31 mkdir realrepo
    31 hg init realrepo
    32 cd realrepo
    32 cd realrepo
    33 hg init .
       
    34 mkdir denied
    33 mkdir denied
    35 echo "This is a file" > content
    34 echo "This is a file" > content
    36 echo "This is a file not everyone can write to" > denied/cantwrite
    35 echo "This is a file not everyone can write to" > denied/cantwrite
    37 hg add content denied/cantwrite
    36 hg init nested
       
    37 echo "This is a file in a nested repo" > nested/content
       
    38 hg add -R nested nested/content
       
    39 hg commit -u test1 -R nested -m "Add files to the subrepo"
       
    40 echo "nested = nested" > .hgsub
       
    41 hg add content denied/cantwrite .hgsub
    38 hg commit -u test1 -m "Add files to the repo"
    42 hg commit -u test1 -m "Add files to the repo"
    39 echo "Pushing changes"
    43 echo "Pushing changes"
    40 hg clone . ssh://chroothg/real/project
    44 hg clone . ssh://chroothg/real/project
       
    45 hg clone nested ssh://chroothg/real/project/nested
    41 echo "Done for user test1"
    46 echo "Done for user test1"