equal
deleted
inserted
replaced
|
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 |