action/test1
changeset 266 7cc208cbf2be
child 268 24145a4eb6fc
equal deleted inserted replaced
265:6629144cf111 266:7cc208cbf2be
       
     1 #!/bin/sh
       
     2 
       
     3 set -e
       
     4 
       
     5 cd
       
     6 
       
     7 cat > .ssh/config <<__END__
       
     8 Host chroothg
       
     9 Hostname localhost
       
    10 User hg
       
    11 Port 2222
       
    12 __END__
       
    13 
       
    14 hg clone ssh://chroothg/hgadmin
       
    15 cd hgadmin
       
    16 mkdir -p keys/users
       
    17 cp /home/test2/.ssh/id_rsa.pub keys/users/test2
       
    18 hg add keys/users/test2
       
    19 hg commit -u test1 -m "Added user test2"
       
    20 hg push
       
    21 cd ..
       
    22 mkdir realrepo
       
    23 cd realrepo
       
    24 hg init .
       
    25 echo "This is a file" > content
       
    26 hg add content
       
    27 hg commit -u test1 -m "Add a file to the repo"
       
    28 hg clone . ssh://chroothg/real/project
       
    29