Show More
@@ -211,7 +211,7 b" Make sure bundlerepo doesn't leak tempfi" | |||||
211 | Pull ../full.hg into empty (with hook) |
|
211 | Pull ../full.hg into empty (with hook) | |
212 |
|
212 | |||
213 | $ echo "[hooks]" >> .hg/hgrc |
|
213 | $ echo "[hooks]" >> .hg/hgrc | |
214 |
$ echo "changegroup = p |
|
214 | $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc | |
215 |
|
215 | |||
216 | doesn't work (yet ?) |
|
216 | doesn't work (yet ?) | |
217 |
|
217 |
@@ -28,7 +28,7 b' enable obsolescence' | |||||
28 | > [hooks] |
|
28 | > [hooks] | |
29 | > pretxnclose.tip = hg log -r tip -T "pre-close-tip:{node|short} {phase} {bookmarks}\n" |
|
29 | > pretxnclose.tip = hg log -r tip -T "pre-close-tip:{node|short} {phase} {bookmarks}\n" | |
30 | > txnclose.tip = hg log -r tip -T "postclose-tip:{node|short} {phase} {bookmarks}\n" |
|
30 | > txnclose.tip = hg log -r tip -T "postclose-tip:{node|short} {phase} {bookmarks}\n" | |
31 |
> txnclose.env = sh -c "HG_LOCAL= p |
|
31 | > txnclose.env = sh -c "HG_LOCAL= printenv.py txnclose" | |
32 | > pushkey= sh "$TESTTMP/bundle2-pushkey-hook.sh" |
|
32 | > pushkey= sh "$TESTTMP/bundle2-pushkey-hook.sh" | |
33 | > EOF |
|
33 | > EOF | |
34 |
|
34 |
@@ -67,9 +67,9 b' Add two linear commits' | |||||
67 | $ cd ../clone |
|
67 | $ cd ../clone | |
68 | $ cat >> .hg/hgrc <<EOF |
|
68 | $ cat >> .hg/hgrc <<EOF | |
69 | > [hooks] |
|
69 | > [hooks] | |
70 |
> pretxnchangegroup = sh -c " |
|
70 | > pretxnchangegroup = sh -c "printenv.py pretxnchangegroup" | |
71 |
> changegroup = sh -c " |
|
71 | > changegroup = sh -c "printenv.py changegroup" | |
72 |
> incoming = sh -c " |
|
72 | > incoming = sh -c "printenv.py incoming" | |
73 | > EOF |
|
73 | > EOF | |
74 |
|
74 | |||
75 | Pull the new commits in the clone |
|
75 | Pull the new commits in the clone |
@@ -17,19 +17,19 b' commit hooks can see env vars' | |||||
17 | $ cd a |
|
17 | $ cd a | |
18 | $ cat > .hg/hgrc <<EOF |
|
18 | $ cat > .hg/hgrc <<EOF | |
19 | > [hooks] |
|
19 | > [hooks] | |
20 |
> commit = sh -c "HG_LOCAL= HG_TAG= p |
|
20 | > commit = sh -c "HG_LOCAL= HG_TAG= printenv.py commit" | |
21 |
> commit.b = sh -c "HG_LOCAL= HG_TAG= p |
|
21 | > commit.b = sh -c "HG_LOCAL= HG_TAG= printenv.py commit.b" | |
22 |
> precommit = sh -c "HG_LOCAL= HG_NODE= HG_TAG= p |
|
22 | > precommit = sh -c "HG_LOCAL= HG_NODE= HG_TAG= printenv.py precommit" | |
23 |
> pretxncommit = sh -c "HG_LOCAL= HG_TAG= p |
|
23 | > pretxncommit = sh -c "HG_LOCAL= HG_TAG= printenv.py pretxncommit" | |
24 | > pretxncommit.tip = hg -q tip |
|
24 | > pretxncommit.tip = hg -q tip | |
25 |
> pre-identify = |
|
25 | > pre-identify = printenv.py pre-identify 1 | |
26 |
> pre-cat = |
|
26 | > pre-cat = printenv.py pre-cat | |
27 |
> post-cat = |
|
27 | > post-cat = printenv.py post-cat | |
28 |
> pretxnopen = sh -c "HG_LOCAL= HG_TAG= p |
|
28 | > pretxnopen = sh -c "HG_LOCAL= HG_TAG= printenv.py pretxnopen" | |
29 |
> pretxnclose = sh -c "HG_LOCAL= HG_TAG= p |
|
29 | > pretxnclose = sh -c "HG_LOCAL= HG_TAG= printenv.py pretxnclose" | |
30 |
> txnclose = sh -c "HG_LOCAL= HG_TAG= p |
|
30 | > txnclose = sh -c "HG_LOCAL= HG_TAG= printenv.py txnclose" | |
31 | > txnabort.0 = python:$TESTTMP/txnabort.checkargs.py:showargs |
|
31 | > txnabort.0 = python:$TESTTMP/txnabort.checkargs.py:showargs | |
32 |
> txnabort.1 = sh -c "HG_LOCAL= HG_TAG= p |
|
32 | > txnabort.1 = sh -c "HG_LOCAL= HG_TAG= printenv.py txnabort" | |
33 | > txnclose.checklock = sh -c "hg debuglock > /dev/null" |
|
33 | > txnclose.checklock = sh -c "hg debuglock > /dev/null" | |
34 | > EOF |
|
34 | > EOF | |
35 | $ echo a > a |
|
35 | $ echo a > a | |
@@ -53,9 +53,9 b' changegroup hooks can see env vars' | |||||
53 |
|
53 | |||
54 | $ cat > .hg/hgrc <<EOF |
|
54 | $ cat > .hg/hgrc <<EOF | |
55 | > [hooks] |
|
55 | > [hooks] | |
56 |
> prechangegroup = |
|
56 | > prechangegroup = printenv.py prechangegroup | |
57 |
> changegroup = |
|
57 | > changegroup = printenv.py changegroup | |
58 |
> incoming = |
|
58 | > incoming = printenv.py incoming | |
59 | > EOF |
|
59 | > EOF | |
60 |
|
60 | |||
61 | pretxncommit and commit hooks can see both parents of merge |
|
61 | pretxncommit and commit hooks can see both parents of merge | |
@@ -128,8 +128,8 b' tag hooks can see env vars' | |||||
128 |
|
128 | |||
129 | $ cd ../a |
|
129 | $ cd ../a | |
130 | $ cat >> .hg/hgrc <<EOF |
|
130 | $ cat >> .hg/hgrc <<EOF | |
131 |
> pretag = |
|
131 | > pretag = printenv.py pretag | |
132 |
> tag = sh -c "HG_PARENT1= HG_PARENT2= p |
|
132 | > tag = sh -c "HG_PARENT1= HG_PARENT2= printenv.py tag" | |
133 | > EOF |
|
133 | > EOF | |
134 | $ hg tag -d '3 0' a |
|
134 | $ hg tag -d '3 0' a | |
135 | pretag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a |
|
135 | pretag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a | |
@@ -148,7 +148,7 b' tag hooks can see env vars' | |||||
148 |
|
148 | |||
149 | pretag hook can forbid tagging |
|
149 | pretag hook can forbid tagging | |
150 |
|
150 | |||
151 |
$ echo "pretag.forbid = p |
|
151 | $ echo "pretag.forbid = printenv.py pretag.forbid 1" >> .hg/hgrc | |
152 | $ hg tag -d '4 0' fa |
|
152 | $ hg tag -d '4 0' fa | |
153 | pretag hook: HG_LOCAL=0 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=fa |
|
153 | pretag hook: HG_LOCAL=0 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=fa | |
154 | pretag.forbid hook: HG_LOCAL=0 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=fa |
|
154 | pretag.forbid hook: HG_LOCAL=0 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=fa | |
@@ -164,7 +164,7 b' pretxncommit hook can see changeset, can' | |||||
164 | more there after |
|
164 | more there after | |
165 |
|
165 | |||
166 | $ echo "pretxncommit.forbid0 = hg tip -q" >> .hg/hgrc |
|
166 | $ echo "pretxncommit.forbid0 = hg tip -q" >> .hg/hgrc | |
167 |
$ echo "pretxncommit.forbid1 = p |
|
167 | $ echo "pretxncommit.forbid1 = printenv.py pretxncommit.forbid 1" >> .hg/hgrc | |
168 | $ echo z > z |
|
168 | $ echo z > z | |
169 | $ hg add z |
|
169 | $ hg add z | |
170 | $ hg -q tip |
|
170 | $ hg -q tip | |
@@ -202,7 +202,7 b' more there after' | |||||
202 |
|
202 | |||
203 | precommit hook can prevent commit |
|
203 | precommit hook can prevent commit | |
204 |
|
204 | |||
205 |
$ echo "precommit.forbid = p |
|
205 | $ echo "precommit.forbid = printenv.py precommit.forbid 1" >> .hg/hgrc | |
206 | $ hg commit -m 'fail' -d '4 0' |
|
206 | $ hg commit -m 'fail' -d '4 0' | |
207 | precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 |
|
207 | precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 | |
208 | precommit.forbid hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 |
|
208 | precommit.forbid hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 | |
@@ -213,14 +213,14 b' precommit hook can prevent commit' | |||||
213 |
|
213 | |||
214 | preupdate hook can prevent update |
|
214 | preupdate hook can prevent update | |
215 |
|
215 | |||
216 |
$ echo "preupdate = p |
|
216 | $ echo "preupdate = printenv.py preupdate" >> .hg/hgrc | |
217 | $ hg update 1 |
|
217 | $ hg update 1 | |
218 | preupdate hook: HG_PARENT1=ab228980c14d |
|
218 | preupdate hook: HG_PARENT1=ab228980c14d | |
219 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
219 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
220 |
|
220 | |||
221 | update hook |
|
221 | update hook | |
222 |
|
222 | |||
223 |
$ echo "update = p |
|
223 | $ echo "update = printenv.py update" >> .hg/hgrc | |
224 | $ hg update |
|
224 | $ hg update | |
225 | preupdate hook: HG_PARENT1=539e4b31b6dc |
|
225 | preupdate hook: HG_PARENT1=539e4b31b6dc | |
226 | update hook: HG_ERROR=0 HG_PARENT1=539e4b31b6dc |
|
226 | update hook: HG_ERROR=0 HG_PARENT1=539e4b31b6dc | |
@@ -228,7 +228,7 b' update hook' | |||||
228 |
|
228 | |||
229 | pushkey hook |
|
229 | pushkey hook | |
230 |
|
230 | |||
231 |
$ echo "pushkey = p |
|
231 | $ echo "pushkey = printenv.py pushkey" >> .hg/hgrc | |
232 | $ cd ../b |
|
232 | $ cd ../b | |
233 | $ hg bookmark -r null foo |
|
233 | $ hg bookmark -r null foo | |
234 | $ hg push -B foo ../a |
|
234 | $ hg push -B foo ../a | |
@@ -245,7 +245,7 b' pushkey hook' | |||||
245 |
|
245 | |||
246 | listkeys hook |
|
246 | listkeys hook | |
247 |
|
247 | |||
248 |
$ echo "listkeys = p |
|
248 | $ echo "listkeys = printenv.py listkeys" >> .hg/hgrc | |
249 | $ hg bookmark -r null bar |
|
249 | $ hg bookmark -r null bar | |
250 | $ cd ../b |
|
250 | $ cd ../b | |
251 | $ hg pull -B bar ../a |
|
251 | $ hg pull -B bar ../a | |
@@ -259,7 +259,7 b' listkeys hook' | |||||
259 |
|
259 | |||
260 | test that prepushkey can prevent incoming keys |
|
260 | test that prepushkey can prevent incoming keys | |
261 |
|
261 | |||
262 |
$ echo "prepushkey = p |
|
262 | $ echo "prepushkey = printenv.py prepushkey.forbid 1" >> .hg/hgrc | |
263 | $ cd ../b |
|
263 | $ cd ../b | |
264 | $ hg bookmark -r null baz |
|
264 | $ hg bookmark -r null baz | |
265 | $ hg push -B baz ../a |
|
265 | $ hg push -B baz ../a | |
@@ -280,7 +280,7 b' test that prepushkey can prevent incomin' | |||||
280 |
|
280 | |||
281 | test that prelistkeys can prevent listing keys |
|
281 | test that prelistkeys can prevent listing keys | |
282 |
|
282 | |||
283 |
$ echo "prelistkeys = p |
|
283 | $ echo "prelistkeys = printenv.py prelistkeys.forbid 1" >> .hg/hgrc | |
284 | $ hg bookmark -r null quux |
|
284 | $ hg bookmark -r null quux | |
285 | $ cd ../b |
|
285 | $ cd ../b | |
286 | $ hg pull -B quux ../a |
|
286 | $ hg pull -B quux ../a | |
@@ -298,7 +298,7 b' prechangegroup hook can prevent incoming' | |||||
298 | 3:07f3376c1e65 |
|
298 | 3:07f3376c1e65 | |
299 | $ cat > .hg/hgrc <<EOF |
|
299 | $ cat > .hg/hgrc <<EOF | |
300 | > [hooks] |
|
300 | > [hooks] | |
301 |
> prechangegroup.forbid = |
|
301 | > prechangegroup.forbid = printenv.py prechangegroup.forbid 1 | |
302 | > EOF |
|
302 | > EOF | |
303 | $ hg pull ../a |
|
303 | $ hg pull ../a | |
304 | pulling from ../a |
|
304 | pulling from ../a | |
@@ -313,7 +313,7 b' incoming changes no longer there after' | |||||
313 | $ cat > .hg/hgrc <<EOF |
|
313 | $ cat > .hg/hgrc <<EOF | |
314 | > [hooks] |
|
314 | > [hooks] | |
315 | > pretxnchangegroup.forbid0 = hg tip -q |
|
315 | > pretxnchangegroup.forbid0 = hg tip -q | |
316 |
> pretxnchangegroup.forbid1 = |
|
316 | > pretxnchangegroup.forbid1 = printenv.py pretxnchangegroup.forbid 1 | |
317 | > EOF |
|
317 | > EOF | |
318 | $ hg pull ../a |
|
318 | $ hg pull ../a | |
319 | pulling from ../a |
|
319 | pulling from ../a | |
@@ -336,8 +336,8 b' outgoing hooks can see env vars' | |||||
336 | $ rm .hg/hgrc |
|
336 | $ rm .hg/hgrc | |
337 | $ cat > ../a/.hg/hgrc <<EOF |
|
337 | $ cat > ../a/.hg/hgrc <<EOF | |
338 | > [hooks] |
|
338 | > [hooks] | |
339 |
> preoutgoing = |
|
339 | > preoutgoing = printenv.py preoutgoing | |
340 |
> outgoing = |
|
340 | > outgoing = printenv.py outgoing | |
341 | > EOF |
|
341 | > EOF | |
342 | $ hg pull ../a |
|
342 | $ hg pull ../a | |
343 | pulling from ../a |
|
343 | pulling from ../a | |
@@ -355,7 +355,7 b' outgoing hooks can see env vars' | |||||
355 |
|
355 | |||
356 | preoutgoing hook can prevent outgoing changes |
|
356 | preoutgoing hook can prevent outgoing changes | |
357 |
|
357 | |||
358 |
$ echo "preoutgoing.forbid = p |
|
358 | $ echo "preoutgoing.forbid = printenv.py preoutgoing.forbid 1" >> ../a/.hg/hgrc | |
359 | $ hg pull ../a |
|
359 | $ hg pull ../a | |
360 | pulling from ../a |
|
360 | pulling from ../a | |
361 | searching for changes |
|
361 | searching for changes | |
@@ -369,8 +369,8 b' outgoing hooks work for local clones' | |||||
369 | $ cd .. |
|
369 | $ cd .. | |
370 | $ cat > a/.hg/hgrc <<EOF |
|
370 | $ cat > a/.hg/hgrc <<EOF | |
371 | > [hooks] |
|
371 | > [hooks] | |
372 |
> preoutgoing = |
|
372 | > preoutgoing = printenv.py preoutgoing | |
373 |
> outgoing = |
|
373 | > outgoing = printenv.py outgoing | |
374 | > EOF |
|
374 | > EOF | |
375 | $ hg clone a c |
|
375 | $ hg clone a c | |
376 | preoutgoing hook: HG_SOURCE=clone |
|
376 | preoutgoing hook: HG_SOURCE=clone | |
@@ -381,7 +381,7 b' outgoing hooks work for local clones' | |||||
381 |
|
381 | |||
382 | preoutgoing hook can prevent outgoing changes for local clones |
|
382 | preoutgoing hook can prevent outgoing changes for local clones | |
383 |
|
383 | |||
384 |
$ echo "preoutgoing.forbid = p |
|
384 | $ echo "preoutgoing.forbid = printenv.py preoutgoing.forbid 1" >> a/.hg/hgrc | |
385 | $ hg clone a zzz |
|
385 | $ hg clone a zzz | |
386 | preoutgoing hook: HG_SOURCE=clone |
|
386 | preoutgoing hook: HG_SOURCE=clone | |
387 | preoutgoing.forbid hook: HG_SOURCE=clone |
|
387 | preoutgoing.forbid hook: HG_SOURCE=clone |
@@ -128,7 +128,7 b' pull' | |||||
128 |
|
128 | |||
129 | $ cd copy-pull |
|
129 | $ cd copy-pull | |
130 | $ echo '[hooks]' >> .hg/hgrc |
|
130 | $ echo '[hooks]' >> .hg/hgrc | |
131 |
$ echo "changegroup = p |
|
131 | $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc | |
132 | $ hg pull |
|
132 | $ hg pull | |
133 | pulling from http://localhost:$HGPORT1/ |
|
133 | pulling from http://localhost:$HGPORT1/ | |
134 | searching for changes |
|
134 | searching for changes |
@@ -119,7 +119,7 b' pull' | |||||
119 |
|
119 | |||
120 | $ cd copy-pull |
|
120 | $ cd copy-pull | |
121 | $ echo '[hooks]' >> .hg/hgrc |
|
121 | $ echo '[hooks]' >> .hg/hgrc | |
122 |
$ echo "changegroup = p |
|
122 | $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc | |
123 | $ hg pull |
|
123 | $ hg pull | |
124 | pulling from http://localhost:$HGPORT1/ |
|
124 | pulling from http://localhost:$HGPORT1/ | |
125 | searching for changes |
|
125 | searching for changes |
@@ -201,7 +201,7 b' pull without cacert' | |||||
201 |
|
201 | |||
202 | $ cd copy-pull |
|
202 | $ cd copy-pull | |
203 | $ echo '[hooks]' >> .hg/hgrc |
|
203 | $ echo '[hooks]' >> .hg/hgrc | |
204 |
$ echo "changegroup = p |
|
204 | $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc | |
205 | $ hg pull $DISABLEOSXDUMMYCERT |
|
205 | $ hg pull $DISABLEOSXDUMMYCERT | |
206 | pulling from https://localhost:$HGPORT/ |
|
206 | pulling from https://localhost:$HGPORT/ | |
207 | 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) |
|
207 | 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) |
@@ -68,8 +68,8 b' expect success' | |||||
68 |
|
68 | |||
69 | $ echo 'allow_push = *' >> .hg/hgrc |
|
69 | $ echo 'allow_push = *' >> .hg/hgrc | |
70 | $ echo '[hooks]' >> .hg/hgrc |
|
70 | $ echo '[hooks]' >> .hg/hgrc | |
71 |
$ echo "changegroup = p |
|
71 | $ echo "changegroup = printenv.py changegroup 0" >> .hg/hgrc | |
72 |
$ echo "pushkey = p |
|
72 | $ echo "pushkey = printenv.py pushkey 0" >> .hg/hgrc | |
73 | $ req |
|
73 | $ req | |
74 | pushing to http://localhost:$HGPORT/ |
|
74 | pushing to http://localhost:$HGPORT/ | |
75 | searching for changes |
|
75 | searching for changes | |
@@ -121,7 +121,7 b' expect push success, phase change failur' | |||||
121 | > push_ssl = false |
|
121 | > push_ssl = false | |
122 | > allow_push = * |
|
122 | > allow_push = * | |
123 | > [hooks] |
|
123 | > [hooks] | |
124 |
> prepushkey = |
|
124 | > prepushkey = printenv.py prepushkey 1 | |
125 | > EOF |
|
125 | > EOF | |
126 | $ req |
|
126 | $ req | |
127 | pushing to http://localhost:$HGPORT/ |
|
127 | pushing to http://localhost:$HGPORT/ | |
@@ -134,7 +134,7 b' expect push success, phase change failur' | |||||
134 |
|
134 | |||
135 | expect phase change success |
|
135 | expect phase change success | |
136 |
|
136 | |||
137 |
$ echo "prepushkey = p |
|
137 | $ echo "prepushkey = printenv.py prepushkey 0" >> .hg/hgrc | |
138 | $ req |
|
138 | $ req | |
139 | pushing to http://localhost:$HGPORT/ |
|
139 | pushing to http://localhost:$HGPORT/ | |
140 | searching for changes |
|
140 | searching for changes |
@@ -58,8 +58,8 b' expect success' | |||||
58 |
|
58 | |||
59 | $ echo 'allow_push = *' >> .hg/hgrc |
|
59 | $ echo 'allow_push = *' >> .hg/hgrc | |
60 | $ echo '[hooks]' >> .hg/hgrc |
|
60 | $ echo '[hooks]' >> .hg/hgrc | |
61 |
$ echo "changegroup = p |
|
61 | $ echo "changegroup = printenv.py changegroup 0" >> .hg/hgrc | |
62 |
$ echo "pushkey = p |
|
62 | $ echo "pushkey = printenv.py pushkey 0" >> .hg/hgrc | |
63 | $ req |
|
63 | $ req | |
64 | pushing to http://localhost:$HGPORT/ |
|
64 | pushing to http://localhost:$HGPORT/ | |
65 | searching for changes |
|
65 | searching for changes | |
@@ -114,7 +114,7 b' expect push success, phase change failur' | |||||
114 | > push_ssl = false |
|
114 | > push_ssl = false | |
115 | > allow_push = * |
|
115 | > allow_push = * | |
116 | > [hooks] |
|
116 | > [hooks] | |
117 |
> prepushkey = |
|
117 | > prepushkey = printenv.py prepushkey 1 | |
118 | > EOF |
|
118 | > EOF | |
119 | $ req |
|
119 | $ req | |
120 | pushing to http://localhost:$HGPORT/ |
|
120 | pushing to http://localhost:$HGPORT/ | |
@@ -130,7 +130,7 b' expect push success, phase change failur' | |||||
130 |
|
130 | |||
131 | expect phase change success |
|
131 | expect phase change success | |
132 |
|
132 | |||
133 |
$ echo "prepushkey = p |
|
133 | $ echo "prepushkey = printenv.py prepushkey 0" >> .hg/hgrc | |
134 | $ req |
|
134 | $ req | |
135 | pushing to http://localhost:$HGPORT/ |
|
135 | pushing to http://localhost:$HGPORT/ | |
136 | searching for changes |
|
136 | searching for changes |
@@ -36,7 +36,7 b' configure for serving' | |||||
36 | > uncompressed = True |
|
36 | > uncompressed = True | |
37 | > |
|
37 | > | |
38 | > [hooks] |
|
38 | > [hooks] | |
39 |
> changegroup = |
|
39 | > changegroup = printenv.py changegroup-in-remote 0 ../dummylog | |
40 | > EOF |
|
40 | > EOF | |
41 | $ cd .. |
|
41 | $ cd .. | |
42 |
|
42 | |||
@@ -113,7 +113,7 b' verify' | |||||
113 | checking files |
|
113 | checking files | |
114 | 2 files, 3 changesets, 2 total revisions |
|
114 | 2 files, 3 changesets, 2 total revisions | |
115 | $ echo '[hooks]' >> .hg/hgrc |
|
115 | $ echo '[hooks]' >> .hg/hgrc | |
116 |
$ echo "changegroup = p |
|
116 | $ echo "changegroup = printenv.py changegroup-in-local 0 ../dummylog" >> .hg/hgrc | |
117 |
|
117 | |||
118 | empty default pull |
|
118 | empty default pull | |
119 |
|
119 |
@@ -27,7 +27,7 b' configure for serving' | |||||
27 | > uncompressed = True |
|
27 | > uncompressed = True | |
28 | > |
|
28 | > | |
29 | > [hooks] |
|
29 | > [hooks] | |
30 |
> changegroup = |
|
30 | > changegroup = printenv.py changegroup-in-remote 0 ../dummylog | |
31 | > EOF |
|
31 | > EOF | |
32 | $ cd .. |
|
32 | $ cd .. | |
33 |
|
33 | |||
@@ -104,7 +104,7 b' verify' | |||||
104 | checking files |
|
104 | checking files | |
105 | 2 files, 3 changesets, 2 total revisions |
|
105 | 2 files, 3 changesets, 2 total revisions | |
106 | $ echo '[hooks]' >> .hg/hgrc |
|
106 | $ echo '[hooks]' >> .hg/hgrc | |
107 |
$ echo "changegroup = p |
|
107 | $ echo "changegroup = printenv.py changegroup-in-local 0 ../dummylog" >> .hg/hgrc | |
108 |
|
108 | |||
109 | empty default pull |
|
109 | empty default pull | |
110 |
|
110 |
@@ -60,7 +60,7 b' check for HTTP opener failures when cach' | |||||
60 | $ rm .hg/cache/* |
|
60 | $ rm .hg/cache/* | |
61 | $ cd ../local |
|
61 | $ cd ../local | |
62 | $ echo '[hooks]' >> .hg/hgrc |
|
62 | $ echo '[hooks]' >> .hg/hgrc | |
63 |
$ echo "changegroup = p |
|
63 | $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc | |
64 | $ hg pull |
|
64 | $ hg pull | |
65 | pulling from static-http://localhost:$HGPORT/remote |
|
65 | pulling from static-http://localhost:$HGPORT/remote | |
66 | searching for changes |
|
66 | searching for changes |
General Comments 0
You need to be logged in to leave comments.
Login now