40 > EOF |
40 > EOF |
41 $ cd .. |
41 $ cd .. |
42 |
42 |
43 repo not found error |
43 repo not found error |
44 |
44 |
45 $ hg clone -e dummyssh ssh://user@dummy/nonexistent local |
45 $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local |
46 remote: abort: there is no Mercurial repository here (.hg not found)! |
46 remote: abort: there is no Mercurial repository here (.hg not found)! |
47 abort: no suitable response from remote hg! |
47 abort: no suitable response from remote hg! |
48 [255] |
48 [255] |
49 |
49 |
50 non-existent absolute path |
50 non-existent absolute path |
51 |
51 |
52 $ hg clone -e dummyssh ssh://user@dummy//`pwd`/nonexistent local |
52 $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy//`pwd`/nonexistent local |
53 remote: abort: there is no Mercurial repository here (.hg not found)! |
53 remote: abort: there is no Mercurial repository here (.hg not found)! |
54 abort: no suitable response from remote hg! |
54 abort: no suitable response from remote hg! |
55 [255] |
55 [255] |
56 |
56 |
57 clone remote via stream |
57 clone remote via stream |
58 |
58 |
59 $ hg clone -e dummyssh --uncompressed ssh://user@dummy/remote local-stream |
59 $ hg clone -e "python \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream |
60 streaming all changes |
60 streaming all changes |
61 4 files to transfer, 615 bytes of data |
61 4 files to transfer, 615 bytes of data |
62 transferred 615 bytes in * seconds (*) (glob) |
62 transferred 615 bytes in * seconds (*) (glob) |
63 searching for changes |
63 searching for changes |
64 no changes found |
64 no changes found |
76 $ cd .. |
76 $ cd .. |
77 |
77 |
78 clone bookmarks via stream |
78 clone bookmarks via stream |
79 |
79 |
80 $ hg -R local-stream book mybook |
80 $ hg -R local-stream book mybook |
81 $ hg clone -e dummyssh --uncompressed ssh://user@dummy/local-stream stream2 |
81 $ hg clone -e "python \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 |
82 streaming all changes |
82 streaming all changes |
83 4 files to transfer, 615 bytes of data |
83 4 files to transfer, 615 bytes of data |
84 transferred 615 bytes in * seconds (*) (glob) |
84 transferred 615 bytes in * seconds (*) (glob) |
85 searching for changes |
85 searching for changes |
86 no changes found |
86 no changes found |
117 |
117 |
118 empty default pull |
118 empty default pull |
119 |
119 |
120 $ hg paths |
120 $ hg paths |
121 default = ssh://user@dummy/remote |
121 default = ssh://user@dummy/remote |
122 $ hg pull -e dummyssh |
122 $ hg pull -e "python \"$TESTDIR/dummyssh\"" |
123 pulling from ssh://user@dummy/remote |
123 pulling from ssh://user@dummy/remote |
124 searching for changes |
124 searching for changes |
125 no changes found |
125 no changes found |
126 |
126 |
127 pull from wrong ssh URL |
127 pull from wrong ssh URL |
128 |
128 |
129 $ hg pull -e dummyssh ssh://user@dummy/doesnotexist |
129 $ hg pull -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist |
130 pulling from ssh://user@dummy/doesnotexist |
130 pulling from ssh://user@dummy/doesnotexist |
131 remote: abort: there is no Mercurial repository here (.hg not found)! |
131 remote: abort: there is no Mercurial repository here (.hg not found)! |
132 abort: no suitable response from remote hg! |
132 abort: no suitable response from remote hg! |
133 [255] |
133 [255] |
134 |
134 |
139 |
139 |
140 updating rc |
140 updating rc |
141 |
141 |
142 $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
142 $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
143 $ echo "[ui]" >> .hg/hgrc |
143 $ echo "[ui]" >> .hg/hgrc |
144 $ echo "ssh = dummyssh" >> .hg/hgrc |
144 $ echo "ssh = python \"$TESTDIR/dummyssh\"" >> .hg/hgrc |
145 |
145 |
146 find outgoing |
146 find outgoing |
147 |
147 |
148 $ hg out ssh://user@dummy/remote |
148 $ hg out ssh://user@dummy/remote |
149 comparing with ssh://user@dummy/remote |
149 comparing with ssh://user@dummy/remote |
156 summary: add |
156 summary: add |
157 |
157 |
158 |
158 |
159 find incoming on the remote side |
159 find incoming on the remote side |
160 |
160 |
161 $ hg incoming -R ../remote -e dummyssh ssh://user@dummy/local |
161 $ hg incoming -R ../remote -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/local |
162 comparing with ssh://user@dummy/local |
162 comparing with ssh://user@dummy/local |
163 searching for changes |
163 searching for changes |
164 changeset: 3:a28a9d1a809c |
164 changeset: 3:a28a9d1a809c |
165 tag: tip |
165 tag: tip |
166 parent: 0:1160648e36ce |
166 parent: 0:1160648e36ce |
169 summary: add |
169 summary: add |
170 |
170 |
171 |
171 |
172 find incoming on the remote side (using absolute path) |
172 find incoming on the remote side (using absolute path) |
173 |
173 |
174 $ hg incoming -R ../remote -e dummyssh "ssh://user@dummy/`pwd`" |
174 $ hg incoming -R ../remote -e "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`" |
175 comparing with ssh://user@dummy/$TESTTMP/local |
175 comparing with ssh://user@dummy/$TESTTMP/local |
176 searching for changes |
176 searching for changes |
177 changeset: 3:a28a9d1a809c |
177 changeset: 3:a28a9d1a809c |
178 tag: tip |
178 tag: tip |
179 parent: 0:1160648e36ce |
179 parent: 0:1160648e36ce |
231 pushing to ssh://user@dummy/remote |
231 pushing to ssh://user@dummy/remote |
232 searching for changes |
232 searching for changes |
233 no changes found |
233 no changes found |
234 exporting bookmark foo |
234 exporting bookmark foo |
235 [1] |
235 [1] |
236 $ hg debugpushkey --config ui.ssh=dummyssh ssh://user@dummy/remote bookmarks |
236 $ hg debugpushkey --config ui.ssh="python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks |
237 foo 1160648e36cec0054048a7edc4110c6f84fde594 |
237 foo 1160648e36cec0054048a7edc4110c6f84fde594 |
238 $ hg book -f foo |
238 $ hg book -f foo |
239 $ hg push --traceback |
239 $ hg push --traceback |
240 pushing to ssh://user@dummy/remote |
240 pushing to ssh://user@dummy/remote |
241 searching for changes |
241 searching for changes |
301 clone bookmarks |
301 clone bookmarks |
302 |
302 |
303 $ hg -R ../remote bookmark test |
303 $ hg -R ../remote bookmark test |
304 $ hg -R ../remote bookmarks |
304 $ hg -R ../remote bookmarks |
305 * test 4:6c0482d977a3 |
305 * test 4:6c0482d977a3 |
306 $ hg clone -e dummyssh ssh://user@dummy/remote local-bookmarks |
306 $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks |
307 requesting all changes |
307 requesting all changes |
308 adding changesets |
308 adding changesets |
309 adding manifests |
309 adding manifests |
310 adding file changes |
310 adding file changes |
311 added 6 changesets with 5 changes to 4 files (+1 heads) |
311 added 6 changesets with 5 changes to 4 files (+1 heads) |
328 hide outer repo |
328 hide outer repo |
329 $ hg init |
329 $ hg init |
330 |
330 |
331 Test remote paths with spaces (issue2983): |
331 Test remote paths with spaces (issue2983): |
332 |
332 |
333 $ hg init --ssh dummyssh "ssh://user@dummy/a repo" |
333 $ hg init --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
334 $ touch "$TESTTMP/a repo/test" |
334 $ touch "$TESTTMP/a repo/test" |
335 $ hg -R 'a repo' commit -A -m "test" |
335 $ hg -R 'a repo' commit -A -m "test" |
336 adding test |
336 adding test |
337 $ hg -R 'a repo' tag tag |
337 $ hg -R 'a repo' tag tag |
338 $ hg id --ssh dummyssh "ssh://user@dummy/a repo" |
338 $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
339 73649e48688a |
339 73649e48688a |
340 |
340 |
341 $ hg id --ssh dummyssh "ssh://user@dummy/a repo#noNoNO" |
341 $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" |
342 abort: unknown revision 'noNoNO'! |
342 abort: unknown revision 'noNoNO'! |
343 [255] |
343 [255] |
344 |
344 |
345 Test (non-)escaping of remote paths with spaces when cloning (issue3145): |
345 Test (non-)escaping of remote paths with spaces when cloning (issue3145): |
346 |
346 |
347 $ hg clone --ssh dummyssh "ssh://user@dummy/a repo" |
347 $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
348 destination directory: a repo |
348 destination directory: a repo |
349 abort: destination 'a repo' is not empty |
349 abort: destination 'a repo' is not empty |
350 [255] |
350 [255] |
351 |
351 |
352 Test hg-ssh using a helper script that will restore PYTHONPATH (which might |
352 Test hg-ssh using a helper script that will restore PYTHONPATH (which might |
455 |
455 |
456 debug output |
456 debug output |
457 |
457 |
458 $ hg pull --debug ssh://user@dummy/remote |
458 $ hg pull --debug ssh://user@dummy/remote |
459 pulling from ssh://user@dummy/remote |
459 pulling from ssh://user@dummy/remote |
460 running dummyssh user@dummy ('|")hg -R remote serve --stdio('|") (re) |
460 running python ".*/dummyssh" user@dummy ('|")hg -R remote serve --stdio('|") (re) |
461 sending hello command |
461 sending hello command |
462 sending between command |
462 sending between command |
463 remote: 345 |
463 remote: 345 |
464 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 |
464 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 |
465 remote: 1 |
465 remote: 1 |