author | Paul Crowley <paul@lshift.net> |
Tue, 01 Dec 2009 15:31:03 +0000 | |
changeset 266 | 7cc208cbf2be |
child 268 | 24145a4eb6fc |
permissions | -rwxr-xr-x |
#!/bin/sh set -e cd cat > .ssh/config <<__END__ Host chroothg Hostname localhost User hg Port 2222 __END__ hg clone ssh://chroothg/hgadmin cd hgadmin mkdir -p keys/users cp /home/test2/.ssh/id_rsa.pub keys/users/test2 hg add keys/users/test2 hg commit -u test1 -m "Added user test2" hg push cd .. mkdir realrepo cd realrepo hg init . echo "This is a file" > content hg add content hg commit -u test1 -m "Add a file to the repo" hg clone . ssh://chroothg/real/project