equal
deleted
inserted
replaced
54 % serve errors |
54 % serve errors |
55 [255] |
55 [255] |
56 |
56 |
57 expect success |
57 expect success |
58 |
58 |
59 $ echo 'allow_push = *' >> .hg/hgrc |
59 $ cat >> .hg/hgrc <<EOF |
60 $ echo '[hooks]' >> .hg/hgrc |
60 > allow_push = * |
61 $ echo "changegroup = printenv.py changegroup 0" >> .hg/hgrc |
61 > [hooks] |
62 $ echo "pushkey = printenv.py pushkey 0" >> .hg/hgrc |
62 > changegroup = sh -c "printenv.py changegroup 0" |
|
63 > pushkey = sh -c "printenv.py pushkey 0" |
|
64 > EOF |
63 $ req |
65 $ req |
64 pushing to http://localhost:$HGPORT/ |
66 pushing to http://localhost:$HGPORT/ |
65 searching for changes |
67 searching for changes |
66 remote: adding changesets |
68 remote: adding changesets |
67 remote: adding manifests |
69 remote: adding manifests |
112 $ cat > .hg/hgrc <<EOF |
114 $ cat > .hg/hgrc <<EOF |
113 > [web] |
115 > [web] |
114 > push_ssl = false |
116 > push_ssl = false |
115 > allow_push = * |
117 > allow_push = * |
116 > [hooks] |
118 > [hooks] |
117 > prepushkey = printenv.py prepushkey 1 |
119 > prepushkey = sh -c "printenv.py prepushkey 1" |
118 > EOF |
120 > EOF |
119 $ req |
121 $ req |
120 pushing to http://localhost:$HGPORT/ |
122 pushing to http://localhost:$HGPORT/ |
121 searching for changes |
123 searching for changes |
122 remote: adding changesets |
124 remote: adding changesets |
131 % serve errors |
133 % serve errors |
132 [255] |
134 [255] |
133 |
135 |
134 expect phase change success |
136 expect phase change success |
135 |
137 |
136 $ echo "prepushkey = printenv.py prepushkey 0" >> .hg/hgrc |
138 $ cat >> .hg/hgrc <<EOF |
|
139 > prepushkey = sh -c "printenv.py prepushkey 0" |
|
140 > EOF |
137 $ req |
141 $ req |
138 pushing to http://localhost:$HGPORT/ |
142 pushing to http://localhost:$HGPORT/ |
139 searching for changes |
143 searching for changes |
140 remote: adding changesets |
144 remote: adding changesets |
141 remote: adding manifests |
145 remote: adding manifests |