Show More
@@ -1,5 +1,7 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | cp "$TESTDIR"/printenv.py . | |||
|
4 | ||||
3 | # This test tries to exercise the ssh functionality with a dummy script |
|
5 | # This test tries to exercise the ssh functionality with a dummy script | |
4 |
|
6 | |||
5 | cat <<'EOF' > dummyssh |
|
7 | cat <<'EOF' > dummyssh | |
@@ -33,7 +35,7 hg ci -A -m "init" -d "1000000 0" foo fo | |||||
33 | echo '[server]' > .hg/hgrc |
|
35 | echo '[server]' > .hg/hgrc | |
34 | echo 'uncompressed = True' >> .hg/hgrc |
|
36 | echo 'uncompressed = True' >> .hg/hgrc | |
35 | echo '[hooks]' >> .hg/hgrc |
|
37 | echo '[hooks]' >> .hg/hgrc | |
36 |
echo 'changegroup = |
|
38 | echo 'changegroup = python ../printenv.py changegroup-in-remote 0 ../dummylog' >> .hg/hgrc | |
37 |
|
39 | |||
38 | cd .. |
|
40 | cd .. | |
39 |
|
41 | |||
@@ -55,7 +57,7 cd local | |||||
55 | hg verify |
|
57 | hg verify | |
56 |
|
58 | |||
57 | echo '[hooks]' >> .hg/hgrc |
|
59 | echo '[hooks]' >> .hg/hgrc | |
58 |
echo 'changegroup = |
|
60 | echo 'changegroup = python ../printenv.py changegroup-in-local 0 ../dummylog' >> .hg/hgrc | |
59 |
|
61 | |||
60 | echo "# empty default pull" |
|
62 | echo "# empty default pull" | |
61 | hg paths |
|
63 | hg paths |
@@ -85,6 +85,6 Got arguments 1:user@dummy 2:hg -R remot | |||||
85 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: |
|
85 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: | |
86 | Got arguments 1:user@dummy 2:hg -R local serve --stdio 3: 4: 5: |
|
86 | Got arguments 1:user@dummy 2:hg -R local serve --stdio 3: 4: 5: | |
87 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: |
|
87 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: | |
88 | changegroup in remote: u=remote:ssh:127.0.0.1 |
|
88 | changegroup-in-remote hook: HG_NODE=572896fe480d7581849806ee402175c49cb20037 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 | |
89 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: |
|
89 | Got arguments 1:user@dummy 2:hg -R remote serve --stdio 3: 4: 5: | |
90 | changegroup in remote: u=remote:ssh:127.0.0.1 |
|
90 | changegroup-in-remote hook: HG_NODE=ac7448082955a0b2ff5cb4512c1e061c779bbc79 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 |
General Comments 0
You need to be logged in to leave comments.
Login now