Show More
@@ -3,7 +3,7 b'' | |||||
3 | # put something like this in the repo .hg/hgrc: |
|
3 | # put something like this in the repo .hg/hgrc: | |
4 | # |
|
4 | # | |
5 | # [hooks] |
|
5 | # [hooks] | |
6 |
# changegroup = python "$TESTDIR |
|
6 | # changegroup = python "$TESTDIR/printenv.py" <hookname> [exit] [output] | |
7 | # |
|
7 | # | |
8 | # - <hookname> is a mandatory argument (e.g. "changegroup") |
|
8 | # - <hookname> is a mandatory argument (e.g. "changegroup") | |
9 | # - [exit] is the exit code of the hook (default: 0) |
|
9 | # - [exit] is the exit code of the hook (default: 0) |
@@ -206,7 +206,7 b" Make sure bundlerepo doesn't leak tempfi" | |||||
206 | Pull ../full.hg into empty (with hook) |
|
206 | Pull ../full.hg into empty (with hook) | |
207 |
|
207 | |||
208 | $ echo "[hooks]" >> .hg/hgrc |
|
208 | $ echo "[hooks]" >> .hg/hgrc | |
209 |
$ echo "changegroup = python \"$TESTDIR\" |
|
209 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc | |
210 |
|
210 | |||
211 | doesn't work (yet ?) |
|
211 | doesn't work (yet ?) | |
212 |
|
212 |
@@ -93,7 +93,7 b' pull' | |||||
93 |
|
93 | |||
94 | $ cd copy-pull |
|
94 | $ cd copy-pull | |
95 | $ echo '[hooks]' >> .hg/hgrc |
|
95 | $ echo '[hooks]' >> .hg/hgrc | |
96 |
$ echo |
|
96 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc | |
97 | $ hg pull |
|
97 | $ hg pull | |
98 | pulling from http://localhost:$HGPORT1/ |
|
98 | pulling from http://localhost:$HGPORT1/ | |
99 | searching for changes |
|
99 | searching for changes |
@@ -137,7 +137,7 b' pull without cacert' | |||||
137 |
|
137 | |||
138 | $ cd copy-pull |
|
138 | $ cd copy-pull | |
139 | $ echo '[hooks]' >> .hg/hgrc |
|
139 | $ echo '[hooks]' >> .hg/hgrc | |
140 |
$ echo "changegroup = python |
|
140 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc | |
141 | $ hg pull |
|
141 | $ hg pull | |
142 | warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
|
142 | warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
143 | pulling from https://localhost:$HGPORT/ |
|
143 | pulling from https://localhost:$HGPORT/ |
@@ -55,7 +55,7 b' expect success' | |||||
55 |
|
55 | |||
56 | $ echo 'allow_push = *' >> .hg/hgrc |
|
56 | $ echo 'allow_push = *' >> .hg/hgrc | |
57 | $ echo '[hooks]' >> .hg/hgrc |
|
57 | $ echo '[hooks]' >> .hg/hgrc | |
58 |
$ echo |
|
58 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup 0" >> .hg/hgrc | |
59 | $ req |
|
59 | $ req | |
60 | pushing to http://localhost:$HGPORT/ |
|
60 | pushing to http://localhost:$HGPORT/ | |
61 | searching for changes |
|
61 | searching for changes |
@@ -14,7 +14,7 b" creating 'remote' repo" | |||||
14 | > uncompressed = True |
|
14 | > uncompressed = True | |
15 | > |
|
15 | > | |
16 | > [hooks] |
|
16 | > [hooks] | |
17 |
> changegroup = python "$TESTDIR" |
|
17 | > changegroup = python "$TESTDIR/printenv.py" changegroup-in-remote 0 ../dummylog | |
18 | > EOF |
|
18 | > EOF | |
19 | $ cd .. |
|
19 | $ cd .. | |
20 |
|
20 | |||
@@ -70,7 +70,7 b' verify' | |||||
70 | checking files |
|
70 | checking files | |
71 | 2 files, 1 changesets, 2 total revisions |
|
71 | 2 files, 1 changesets, 2 total revisions | |
72 | $ echo '[hooks]' >> .hg/hgrc |
|
72 | $ echo '[hooks]' >> .hg/hgrc | |
73 |
$ echo |
|
73 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup-in-local 0 ../dummylog" >> .hg/hgrc | |
74 |
|
74 | |||
75 | empty default pull |
|
75 | empty default pull | |
76 |
|
76 |
@@ -66,7 +66,7 b' check for HTTP opener failures when cach' | |||||
66 | $ rm .hg/cache/* |
|
66 | $ rm .hg/cache/* | |
67 | $ cd ../local |
|
67 | $ cd ../local | |
68 | $ echo '[hooks]' >> .hg/hgrc |
|
68 | $ echo '[hooks]' >> .hg/hgrc | |
69 |
$ echo |
|
69 | $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc | |
70 | $ hg pull |
|
70 | $ hg pull | |
71 | pulling from static-http://localhost:$HGPORT/remote |
|
71 | pulling from static-http://localhost:$HGPORT/remote | |
72 | searching for changes |
|
72 | searching for changes |
General Comments 0
You need to be logged in to leave comments.
Login now