35 $ hg init remote |
35 $ hg init remote |
36 $ cd remote |
36 $ cd remote |
37 $ echo this > foo |
37 $ echo this > foo |
38 $ echo this > fooO |
38 $ echo this > fooO |
39 $ hg ci -A -m "init" foo fooO |
39 $ hg ci -A -m "init" foo fooO |
40 $ echo '[server]' > .hg/hgrc |
40 $ echo <<EOF > .hg/hgrc |
41 $ echo 'uncompressed = True' >> .hg/hgrc |
41 > [server] |
42 $ echo '[hooks]' >> .hg/hgrc |
42 > uncompressed = True |
43 $ echo 'changegroup = python ../printenv.py changegroup-in-remote 0 ../dummylog' >> .hg/hgrc |
43 > |
|
44 > [extensions] |
|
45 > bookmarks = |
|
46 > |
|
47 > [hooks] |
|
48 > changegroup = python ../printenv.py changegroup-in-remote 0 ../dummylog |
|
49 > EOF |
44 $ cd .. |
50 $ cd .. |
45 |
51 |
46 repo not found error |
52 repo not found error |
47 |
53 |
48 $ hg clone -e "python ./dummyssh" ssh://user@dummy/nonexistent local |
54 $ hg clone -e "python ./dummyssh" ssh://user@dummy/nonexistent local |
114 updating rc |
120 updating rc |
115 |
121 |
116 $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
122 $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
117 $ echo "[ui]" >> .hg/hgrc |
123 $ echo "[ui]" >> .hg/hgrc |
118 $ echo "ssh = python ../dummyssh" >> .hg/hgrc |
124 $ echo "ssh = python ../dummyssh" >> .hg/hgrc |
|
125 $ echo '[extensions]' >> .hg/hgrc |
|
126 $ echo 'bookmarks =' >> .hg/hgrc |
119 |
127 |
120 find outgoing |
128 find outgoing |
121 |
129 |
122 $ hg out ssh://user@dummy/remote |
130 $ hg out ssh://user@dummy/remote |
123 comparing with ssh://user@dummy/remote |
131 comparing with ssh://user@dummy/remote |
183 bleah |
191 bleah |
184 $ echo z > z |
192 $ echo z > z |
185 $ hg ci -A -m z z |
193 $ hg ci -A -m z z |
186 created new head |
194 created new head |
187 |
195 |
|
196 test pushkeys and bookmarks |
|
197 |
|
198 $ cd ../local |
|
199 $ echo '[extensions]' >> ../remote/.hg/hgrc |
|
200 $ echo 'bookmarks =' >> ../remote/.hg/hgrc |
|
201 $ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote namespaces |
|
202 bookmarks |
|
203 namespaces |
|
204 $ hg book foo -r 0 |
|
205 $ hg out -B |
|
206 comparing with ssh://user@dummy/remote |
|
207 searching for changed bookmarks |
|
208 foo 1160648e36ce |
|
209 $ hg push -B foo |
|
210 pushing to ssh://user@dummy/remote |
|
211 searching for changes |
|
212 no changes found |
|
213 exporting bookmark foo |
|
214 $ hg debugpushkey --config ui.ssh="python ../dummyssh" ssh://user@dummy/remote bookmarks |
|
215 foo 1160648e36cec0054048a7edc4110c6f84fde594 |
|
216 $ hg book -f foo |
|
217 $ hg push |
|
218 pushing to ssh://user@dummy/remote |
|
219 searching for changes |
|
220 no changes found |
|
221 updating bookmark foo |
|
222 $ hg book -d foo |
|
223 $ hg in -B |
|
224 comparing with ssh://user@dummy/remote |
|
225 searching for changed bookmarks |
|
226 foo a28a9d1a809c |
|
227 $ hg book -f -r 0 foo |
|
228 $ hg pull -B foo |
|
229 pulling from ssh://user@dummy/remote |
|
230 searching for changes |
|
231 no changes found |
|
232 updating bookmark foo |
|
233 importing bookmark foo |
|
234 $ hg book -d foo |
|
235 $ hg push -B foo |
|
236 deleting remote bookmark foo |
|
237 |
188 a bad, evil hook that prints to stdout |
238 a bad, evil hook that prints to stdout |
189 |
239 |
190 $ echo 'changegroup.stdout = python ../badhook' >> .hg/hgrc |
240 $ echo '[hooks]' >> ../remote/.hg/hgrc |
191 $ cd ../local |
241 $ echo 'changegroup.stdout = python ../badhook' >> ../remote/.hg/hgrc |
192 $ echo r > r |
242 $ echo r > r |
193 $ hg ci -A -m z r |
243 $ hg ci -A -m z r |
194 |
244 |
195 push should succeed even though it has an unexpected response |
245 push should succeed even though it has an unexpected response |
196 |
246 |
226 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
276 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
227 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
277 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
228 Got arguments 1:user@dummy 2:hg -R local serve --stdio |
278 Got arguments 1:user@dummy 2:hg -R local serve --stdio |
229 Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio |
279 Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio |
230 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
280 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
231 changegroup-in-remote hook: HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 |
281 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
232 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
282 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
233 changegroup-in-remote hook: HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1 |
283 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
284 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
285 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
286 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
287 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
288 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
289 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
290 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
|
291 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |