Show More
@@ -18,7 +18,7 b' enable obsolescence' | |||
|
18 | 18 | > evolution=createmarkers,exchange |
|
19 | 19 | > bundle2-output-capture=True |
|
20 | 20 | > [ui] |
|
21 | > ssh=$PYTHON "$TESTDIR/dummyssh" | |
|
21 | > ssh="$PYTHON" "$TESTDIR/dummyssh" | |
|
22 | 22 | > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} |
|
23 | 23 | > [web] |
|
24 | 24 | > push_ssl = false |
@@ -909,7 +909,7 b' Test lazily acquiring the lock during un' | |||
|
909 | 909 | $ cp $TESTTMP/hgrc.orig $HGRCPATH |
|
910 | 910 | $ cat >> $HGRCPATH <<EOF |
|
911 | 911 | > [ui] |
|
912 | > ssh=$PYTHON "$TESTDIR/dummyssh" | |
|
912 | > ssh="$PYTHON" "$TESTDIR/dummyssh" | |
|
913 | 913 | > EOF |
|
914 | 914 | |
|
915 | 915 | $ cat >> $TESTTMP/locktester.py <<EOF |
@@ -1044,7 +1044,7 b" Test that auto sharing doesn't cause fai" | |||
|
1044 | 1044 | $ hg id -R remote -r 0 |
|
1045 | 1045 | abort: repository remote not found! |
|
1046 | 1046 | [255] |
|
1047 | $ hg --config share.pool=share -q clone -e "$PYTHON \"$TESTDIR/dummyssh\"" a ssh://user@dummy/remote | |
|
1047 | $ hg --config share.pool=share -q clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" a ssh://user@dummy/remote | |
|
1048 | 1048 | $ hg -R remote id -r 0 |
|
1049 | 1049 | acb14030fe0a |
|
1050 | 1050 |
@@ -69,7 +69,7 b' Server is not running aborts' | |||
|
69 | 69 | |
|
70 | 70 | Server returns 404 |
|
71 | 71 | |
|
72 | $ $PYTHON $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid | |
|
72 | $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid | |
|
73 | 73 | $ cat http.pid >> $DAEMON_PIDS |
|
74 | 74 | $ hg clone http://localhost:$HGPORT running-404 |
|
75 | 75 | applying clone bundle from http://localhost:$HGPORT1/bundle.hg |
@@ -197,7 +197,7 b' by old clients.' | |||
|
197 | 197 | |
|
198 | 198 | Feature works over SSH |
|
199 | 199 | |
|
200 | $ hg clone -U -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone | |
|
200 | $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone | |
|
201 | 201 | applying clone bundle from http://localhost:$HGPORT1/full.hg |
|
202 | 202 | adding changesets |
|
203 | 203 | adding manifests |
@@ -87,7 +87,7 b' verify 7e7d56fe4833 (encoding fallback i' | |||
|
87 | 87 | > EOF |
|
88 | 88 | $ echo baz >> b/foo |
|
89 | 89 | $ hg -R b ci -m baz |
|
90 |
$ hg push -R b -e |
|
|
90 | $ hg push -R b -e "\"$PYTHON\" oldhg" ssh://dummy/ --encoding latin1 | |
|
91 | 91 | pushing to ssh://dummy/ |
|
92 | 92 | searching for changes |
|
93 | 93 | remote: adding changesets |
@@ -106,7 +106,7 b' test failure' | |||
|
106 | 106 | |
|
107 | 107 | init+push to remote2 |
|
108 | 108 | |
|
109 | $ hg init -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | |
|
109 | $ hg init -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | |
|
110 | 110 | $ hg incoming -R remote2 local |
|
111 | 111 | comparing with local |
|
112 | 112 | changeset: 0:08b9e9f63b32 |
@@ -116,7 +116,7 b' init+push to remote2' | |||
|
116 | 116 | summary: init |
|
117 | 117 | |
|
118 | 118 | |
|
119 | $ hg push -R local -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | |
|
119 | $ hg push -R local -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 | |
|
120 | 120 | pushing to ssh://user@dummy/remote2 |
|
121 | 121 | searching for changes |
|
122 | 122 | remote: adding changesets |
@@ -126,7 +126,7 b' init+push to remote2' | |||
|
126 | 126 | |
|
127 | 127 | clone to remote1 |
|
128 | 128 | |
|
129 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | |
|
129 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | |
|
130 | 130 | searching for changes |
|
131 | 131 | remote: adding changesets |
|
132 | 132 | remote: adding manifests |
@@ -134,7 +134,7 b' clone to remote1' | |||
|
134 | 134 | remote: added 1 changesets with 1 changes to 1 files |
|
135 | 135 | |
|
136 | 136 | The largefiles extension doesn't crash |
|
137 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remotelf --config extensions.largefiles= | |
|
137 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remotelf --config extensions.largefiles= | |
|
138 | 138 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
|
139 | 139 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
|
140 | 140 | searching for changes |
@@ -145,14 +145,14 b" The largefiles extension doesn't crash" | |||
|
145 | 145 | |
|
146 | 146 | init to existing repo |
|
147 | 147 | |
|
148 | $ hg init -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1 | |
|
148 | $ hg init -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1 | |
|
149 | 149 | abort: repository remote1 already exists! |
|
150 | 150 | abort: could not create remote repo! |
|
151 | 151 | [255] |
|
152 | 152 | |
|
153 | 153 | clone to existing repo |
|
154 | 154 | |
|
155 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | |
|
155 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 | |
|
156 | 156 | abort: repository remote1 already exists! |
|
157 | 157 | abort: could not create remote repo! |
|
158 | 158 | [255] |
@@ -251,7 +251,7 b' clone bookmarks' | |||
|
251 | 251 | $ hg -R local bookmark test |
|
252 | 252 | $ hg -R local bookmarks |
|
253 | 253 | * test 0:08b9e9f63b32 |
|
254 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks | |
|
254 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks | |
|
255 | 255 | searching for changes |
|
256 | 256 | remote: adding changesets |
|
257 | 257 | remote: adding manifests |
@@ -112,7 +112,7 b' used all HGPORTs, kill all daemons' | |||
|
112 | 112 | #endif |
|
113 | 113 | |
|
114 | 114 | vanilla clients locked out from largefiles ssh repos |
|
115 | $ hg --config extensions.largefiles=! clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5 | |
|
115 | $ hg --config extensions.largefiles=! clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5 | |
|
116 | 116 | remote: |
|
117 | 117 | remote: This repository uses the largefiles extension. |
|
118 | 118 | remote: |
@@ -44,21 +44,21 b' configure for serving' | |||
|
44 | 44 | |
|
45 | 45 | repo not found error |
|
46 | 46 | |
|
47 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local | |
|
47 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local | |
|
48 | 48 | remote: abort: repository nonexistent not found! |
|
49 | 49 | abort: no suitable response from remote hg! |
|
50 | 50 | [255] |
|
51 | 51 | |
|
52 | 52 | non-existent absolute path |
|
53 | 53 | |
|
54 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy//`pwd`/nonexistent local | |
|
54 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy//`pwd`/nonexistent local | |
|
55 | 55 | remote: abort: repository /$TESTTMP/nonexistent not found! |
|
56 | 56 | abort: no suitable response from remote hg! |
|
57 | 57 | [255] |
|
58 | 58 | |
|
59 | 59 | clone remote via stream |
|
60 | 60 | |
|
61 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream | |
|
61 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream | |
|
62 | 62 | streaming all changes |
|
63 | 63 | 4 files to transfer, 602 bytes of data |
|
64 | 64 | transferred 602 bytes in * seconds (*) (glob) |
@@ -80,7 +80,7 b' clone remote via stream' | |||
|
80 | 80 | clone bookmarks via stream |
|
81 | 81 | |
|
82 | 82 | $ hg -R local-stream book mybook |
|
83 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 | |
|
83 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 | |
|
84 | 84 | streaming all changes |
|
85 | 85 | 4 files to transfer, 602 bytes of data |
|
86 | 86 | transferred 602 bytes in * seconds (*) (glob) |
@@ -96,7 +96,7 b' clone bookmarks via stream' | |||
|
96 | 96 | |
|
97 | 97 | clone remote via pull |
|
98 | 98 | |
|
99 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local | |
|
99 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local | |
|
100 | 100 | requesting all changes |
|
101 | 101 | adding changesets |
|
102 | 102 | adding manifests |
@@ -123,14 +123,14 b' empty default pull' | |||
|
123 | 123 | |
|
124 | 124 | $ hg paths |
|
125 | 125 | default = ssh://user@dummy/remote |
|
126 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" | |
|
126 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" | |
|
127 | 127 | pulling from ssh://user@dummy/remote |
|
128 | 128 | searching for changes |
|
129 | 129 | no changes found |
|
130 | 130 | |
|
131 | 131 | pull from wrong ssh URL |
|
132 | 132 | |
|
133 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist | |
|
133 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist | |
|
134 | 134 | pulling from ssh://user@dummy/doesnotexist |
|
135 | 135 | remote: abort: repository doesnotexist not found! |
|
136 | 136 | abort: no suitable response from remote hg! |
@@ -145,7 +145,7 b' updating rc' | |||
|
145 | 145 | |
|
146 | 146 | $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
|
147 | 147 | $ echo "[ui]" >> .hg/hgrc |
|
148 | $ echo "ssh = $PYTHON \"$TESTDIR/dummyssh\"" >> .hg/hgrc | |
|
148 | $ echo "ssh = \"$PYTHON\" \"$TESTDIR/dummyssh\"" >> .hg/hgrc | |
|
149 | 149 | |
|
150 | 150 | find outgoing |
|
151 | 151 | |
@@ -162,7 +162,7 b' find outgoing' | |||
|
162 | 162 | |
|
163 | 163 | find incoming on the remote side |
|
164 | 164 | |
|
165 | $ hg incoming -R ../remote -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/local | |
|
165 | $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/local | |
|
166 | 166 | comparing with ssh://user@dummy/local |
|
167 | 167 | searching for changes |
|
168 | 168 | changeset: 3:a28a9d1a809c |
@@ -175,7 +175,7 b' find incoming on the remote side' | |||
|
175 | 175 | |
|
176 | 176 | find incoming on the remote side (using absolute path) |
|
177 | 177 | |
|
178 | $ hg incoming -R ../remote -e "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`" | |
|
178 | $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`" | |
|
179 | 179 | comparing with ssh://user@dummy/$TESTTMP/local |
|
180 | 180 | searching for changes |
|
181 | 181 | changeset: 3:a28a9d1a809c |
@@ -222,7 +222,7 b' check remote tip' | |||
|
222 | 222 | test pushkeys and bookmarks |
|
223 | 223 | |
|
224 | 224 | $ cd ../local |
|
225 | $ hg debugpushkey --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces | |
|
225 | $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces | |
|
226 | 226 | bookmarks |
|
227 | 227 | namespaces |
|
228 | 228 | phases |
@@ -237,7 +237,7 b' test pushkeys and bookmarks' | |||
|
237 | 237 | no changes found |
|
238 | 238 | exporting bookmark foo |
|
239 | 239 | [1] |
|
240 | $ hg debugpushkey --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks | |
|
240 | $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks | |
|
241 | 241 | foo 1160648e36cec0054048a7edc4110c6f84fde594 |
|
242 | 242 | $ hg book -f foo |
|
243 | 243 | $ hg push --traceback |
@@ -272,7 +272,7 b' a bad, evil hook that prints to stdout' | |||
|
272 | 272 | > EOF |
|
273 | 273 | |
|
274 | 274 | $ echo '[hooks]' >> ../remote/.hg/hgrc |
|
275 | $ echo "changegroup.stdout = $PYTHON $TESTTMP/badhook" >> ../remote/.hg/hgrc | |
|
275 | $ echo "changegroup.stdout = \"$PYTHON\" $TESTTMP/badhook" >> ../remote/.hg/hgrc | |
|
276 | 276 | $ echo r > r |
|
277 | 277 | $ hg ci -A -m z r |
|
278 | 278 | |
@@ -307,7 +307,7 b' clone bookmarks' | |||
|
307 | 307 | $ hg -R ../remote bookmark test |
|
308 | 308 | $ hg -R ../remote bookmarks |
|
309 | 309 | * test 4:6c0482d977a3 |
|
310 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks | |
|
310 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks | |
|
311 | 311 | requesting all changes |
|
312 | 312 | adding changesets |
|
313 | 313 | adding manifests |
@@ -334,21 +334,21 b' hide outer repo' | |||
|
334 | 334 | |
|
335 | 335 | Test remote paths with spaces (issue2983): |
|
336 | 336 | |
|
337 | $ hg init --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
337 | $ hg init --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
338 | 338 | $ touch "$TESTTMP/a repo/test" |
|
339 | 339 | $ hg -R 'a repo' commit -A -m "test" |
|
340 | 340 | adding test |
|
341 | 341 | $ hg -R 'a repo' tag tag |
|
342 | $ hg id --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
342 | $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
343 | 343 | 73649e48688a |
|
344 | 344 | |
|
345 | $ hg id --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" | |
|
345 | $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" | |
|
346 | 346 | abort: unknown revision 'noNoNO'! |
|
347 | 347 | [255] |
|
348 | 348 | |
|
349 | 349 | Test (non-)escaping of remote paths with spaces when cloning (issue3145): |
|
350 | 350 | |
|
351 | $ hg clone --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
351 | $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
352 | 352 | destination directory: a repo |
|
353 | 353 | abort: destination 'a repo' is not empty |
|
354 | 354 | [255] |
@@ -363,7 +363,7 b' parameters:' | |||
|
363 | 363 | > export SSH_ORIGINAL_COMMAND |
|
364 | 364 | > PYTHONPATH="$PYTHONPATH" |
|
365 | 365 | > export PYTHONPATH |
|
366 | > $PYTHON "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" | |
|
366 | > "$PYTHON" "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" | |
|
367 | 367 | > EOF |
|
368 | 368 | |
|
369 | 369 | $ hg id --ssh "sh ssh.sh" "ssh://user@dummy/a repo" |
@@ -391,7 +391,7 b' Test hg-ssh in read-only mode:' | |||
|
391 | 391 | > export SSH_ORIGINAL_COMMAND |
|
392 | 392 | > PYTHONPATH="$PYTHONPATH" |
|
393 | 393 | > export PYTHONPATH |
|
394 | > $PYTHON "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" | |
|
394 | > "$PYTHON" "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" | |
|
395 | 395 | > EOF |
|
396 | 396 | |
|
397 | 397 | $ hg clone --ssh "sh ssh.sh" "ssh://user@dummy/$TESTTMP/remote" read-only-local |
@@ -440,7 +440,7 b' stderr from remote commands should be pr' | |||
|
440 | 440 | > [paths] |
|
441 | 441 | > default-push = ssh://user@dummy/remote |
|
442 | 442 | > [ui] |
|
443 | > ssh = $PYTHON "$TESTDIR/dummyssh" | |
|
443 | > ssh = "$PYTHON" "$TESTDIR/dummyssh" | |
|
444 | 444 | > [extensions] |
|
445 | 445 | > localwrite = localwrite.py |
|
446 | 446 | > EOF |
@@ -526,11 +526,11 b' remote hook failure is attributed to rem' | |||
|
526 | 526 | |
|
527 | 527 | $ echo "pretxnchangegroup.fail = python:$TESTTMP/failhook:hook" >> remote/.hg/hgrc |
|
528 | 528 | |
|
529 |
$ hg -q --config ui.ssh="$PYTHON |
|
|
529 | $ hg -q --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" clone ssh://user@dummy/remote hookout | |
|
530 | 530 | $ cd hookout |
|
531 | 531 | $ touch hookfailure |
|
532 | 532 | $ hg -q commit -A -m 'remote hook failure' |
|
533 |
$ hg --config ui.ssh="$ |
|
|
533 | $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" push | |
|
534 | 534 | pushing to ssh://user@dummy/remote |
|
535 | 535 | searching for changes |
|
536 | 536 | remote: adding changesets |
@@ -551,7 +551,7 b' abort during pull is properly reported a' | |||
|
551 | 551 | > [extensions] |
|
552 | 552 |
> crash = ${ |
|
553 | 553 | > EOF |
|
554 |
$ hg --config |
|
|
554 | $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull | |
|
555 | 555 |
|
|
556 | 556 |
|
|
557 | 557 |
|
@@ -17,7 +17,7 b" creating 'remote' repo" | |||
|
17 | 17 | clone remote via stream |
|
18 | 18 | |
|
19 | 19 | $ for i in 0 1 2 3 4 5 6 7 8; do |
|
20 | > hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" --uncompressed -r "$i" ssh://user@dummy/remote test-"$i" | |
|
20 | > hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed -r "$i" ssh://user@dummy/remote test-"$i" | |
|
21 | 21 | > if cd test-"$i"; then |
|
22 | 22 | > hg verify |
|
23 | 23 | > cd .. |
@@ -139,7 +139,7 b' clone remote via stream' | |||
|
139 | 139 | 4 files, 9 changesets, 7 total revisions |
|
140 | 140 | $ cd .. |
|
141 | 141 | $ cd test-1 |
|
142 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" -r 4 ssh://user@dummy/remote | |
|
142 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -r 4 ssh://user@dummy/remote | |
|
143 | 143 | pulling from ssh://user@dummy/remote |
|
144 | 144 | searching for changes |
|
145 | 145 | adding changesets |
@@ -153,7 +153,7 b' clone remote via stream' | |||
|
153 | 153 | crosschecking files in changesets and manifests |
|
154 | 154 | checking files |
|
155 | 155 | 1 files, 3 changesets, 2 total revisions |
|
156 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote | |
|
156 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote | |
|
157 | 157 | pulling from ssh://user@dummy/remote |
|
158 | 158 | searching for changes |
|
159 | 159 | adding changesets |
@@ -163,7 +163,7 b' clone remote via stream' | |||
|
163 | 163 | (run 'hg update' to get a working copy) |
|
164 | 164 | $ cd .. |
|
165 | 165 | $ cd test-2 |
|
166 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" -r 5 ssh://user@dummy/remote | |
|
166 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -r 5 ssh://user@dummy/remote | |
|
167 | 167 | pulling from ssh://user@dummy/remote |
|
168 | 168 | searching for changes |
|
169 | 169 | adding changesets |
@@ -177,7 +177,7 b' clone remote via stream' | |||
|
177 | 177 | crosschecking files in changesets and manifests |
|
178 | 178 | checking files |
|
179 | 179 | 1 files, 5 changesets, 3 total revisions |
|
180 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote | |
|
180 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote | |
|
181 | 181 | pulling from ssh://user@dummy/remote |
|
182 | 182 | searching for changes |
|
183 | 183 | adding changesets |
@@ -38,21 +38,21 b' configure for serving' | |||
|
38 | 38 | |
|
39 | 39 | repo not found error |
|
40 | 40 | |
|
41 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local | |
|
41 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local | |
|
42 | 42 | remote: abort: repository nonexistent not found! |
|
43 | 43 | abort: no suitable response from remote hg! |
|
44 | 44 | [255] |
|
45 | 45 | |
|
46 | 46 | non-existent absolute path |
|
47 | 47 | |
|
48 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/nonexistent local | |
|
48 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/nonexistent local | |
|
49 | 49 | remote: abort: repository $TESTTMP/nonexistent not found! |
|
50 | 50 | abort: no suitable response from remote hg! |
|
51 | 51 | [255] |
|
52 | 52 | |
|
53 | 53 | clone remote via stream |
|
54 | 54 | |
|
55 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream | |
|
55 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream | |
|
56 | 56 | streaming all changes |
|
57 | 57 | 4 files to transfer, 602 bytes of data |
|
58 | 58 | transferred 602 bytes in * seconds (*) (glob) |
@@ -74,7 +74,7 b' clone remote via stream' | |||
|
74 | 74 | clone bookmarks via stream |
|
75 | 75 | |
|
76 | 76 | $ hg -R local-stream book mybook |
|
77 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 | |
|
77 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 | |
|
78 | 78 | streaming all changes |
|
79 | 79 | 4 files to transfer, 602 bytes of data |
|
80 | 80 | transferred 602 bytes in * seconds (*) (glob) |
@@ -90,7 +90,7 b' clone bookmarks via stream' | |||
|
90 | 90 | |
|
91 | 91 | clone remote via pull |
|
92 | 92 | |
|
93 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local | |
|
93 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local | |
|
94 | 94 | requesting all changes |
|
95 | 95 | adding changesets |
|
96 | 96 | adding manifests |
@@ -117,14 +117,14 b' empty default pull' | |||
|
117 | 117 | |
|
118 | 118 | $ hg paths |
|
119 | 119 | default = ssh://user@dummy/remote |
|
120 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" | |
|
120 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" | |
|
121 | 121 | pulling from ssh://user@dummy/remote |
|
122 | 122 | searching for changes |
|
123 | 123 | no changes found |
|
124 | 124 | |
|
125 | 125 | pull from wrong ssh URL |
|
126 | 126 | |
|
127 | $ hg pull -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist | |
|
127 | $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist | |
|
128 | 128 | pulling from ssh://user@dummy/doesnotexist |
|
129 | 129 | remote: abort: repository doesnotexist not found! |
|
130 | 130 | abort: no suitable response from remote hg! |
@@ -139,7 +139,7 b' updating rc' | |||
|
139 | 139 | |
|
140 | 140 | $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc |
|
141 | 141 | $ echo "[ui]" >> .hg/hgrc |
|
142 | $ echo "ssh = $PYTHON \"$TESTDIR/dummyssh\"" >> .hg/hgrc | |
|
142 | $ echo "ssh = \"$PYTHON\" \"$TESTDIR/dummyssh\"" >> .hg/hgrc | |
|
143 | 143 | |
|
144 | 144 | find outgoing |
|
145 | 145 | |
@@ -156,7 +156,7 b' find outgoing' | |||
|
156 | 156 | |
|
157 | 157 | find incoming on the remote side |
|
158 | 158 | |
|
159 | $ hg incoming -R ../remote -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/local | |
|
159 | $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/local | |
|
160 | 160 | comparing with ssh://user@dummy/local |
|
161 | 161 | searching for changes |
|
162 | 162 | changeset: 3:a28a9d1a809c |
@@ -169,7 +169,7 b' find incoming on the remote side' | |||
|
169 | 169 | |
|
170 | 170 | find incoming on the remote side (using absolute path) |
|
171 | 171 | |
|
172 | $ hg incoming -R ../remote -e "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`" | |
|
172 | $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`" | |
|
173 | 173 | comparing with ssh://user@dummy/$TESTTMP/local |
|
174 | 174 | searching for changes |
|
175 | 175 | changeset: 3:a28a9d1a809c |
@@ -216,7 +216,7 b' check remote tip' | |||
|
216 | 216 | test pushkeys and bookmarks |
|
217 | 217 | |
|
218 | 218 | $ cd ../local |
|
219 | $ hg debugpushkey --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces | |
|
219 | $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces | |
|
220 | 220 | bookmarks |
|
221 | 221 | namespaces |
|
222 | 222 | phases |
@@ -231,7 +231,7 b' test pushkeys and bookmarks' | |||
|
231 | 231 | no changes found |
|
232 | 232 | exporting bookmark foo |
|
233 | 233 | [1] |
|
234 | $ hg debugpushkey --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks | |
|
234 | $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks | |
|
235 | 235 | foo 1160648e36cec0054048a7edc4110c6f84fde594 |
|
236 | 236 | $ hg book -f foo |
|
237 | 237 | $ hg push --traceback |
@@ -311,7 +311,7 b' clone bookmarks' | |||
|
311 | 311 | $ hg -R ../remote bookmark test |
|
312 | 312 | $ hg -R ../remote bookmarks |
|
313 | 313 | * test 4:6c0482d977a3 |
|
314 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks | |
|
314 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks | |
|
315 | 315 | requesting all changes |
|
316 | 316 | adding changesets |
|
317 | 317 | adding manifests |
@@ -338,21 +338,21 b' hide outer repo' | |||
|
338 | 338 | |
|
339 | 339 | Test remote paths with spaces (issue2983): |
|
340 | 340 | |
|
341 | $ hg init --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
341 | $ hg init --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
342 | 342 | $ touch "$TESTTMP/a repo/test" |
|
343 | 343 | $ hg -R 'a repo' commit -A -m "test" |
|
344 | 344 | adding test |
|
345 | 345 | $ hg -R 'a repo' tag tag |
|
346 | $ hg id --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
346 | $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
347 | 347 | 73649e48688a |
|
348 | 348 | |
|
349 | $ hg id --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" | |
|
349 | $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" | |
|
350 | 350 | abort: unknown revision 'noNoNO'! |
|
351 | 351 | [255] |
|
352 | 352 | |
|
353 | 353 | Test (non-)escaping of remote paths with spaces when cloning (issue3145): |
|
354 | 354 | |
|
355 | $ hg clone --ssh "$PYTHON \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
355 | $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
|
356 | 356 | destination directory: a repo |
|
357 | 357 | abort: destination 'a repo' is not empty |
|
358 | 358 | [255] |
@@ -380,7 +380,7 b' parameters:' | |||
|
380 | 380 | > export SSH_ORIGINAL_COMMAND |
|
381 | 381 | > PYTHONPATH="$PYTHONPATH" |
|
382 | 382 | > export PYTHONPATH |
|
383 | > $PYTHON "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" | |
|
383 | > "$PYTHON" "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" | |
|
384 | 384 | > EOF |
|
385 | 385 | |
|
386 | 386 | $ hg id --ssh "sh ssh.sh" "ssh://user@dummy/a repo" |
@@ -408,7 +408,7 b' Test hg-ssh in read-only mode:' | |||
|
408 | 408 | > export SSH_ORIGINAL_COMMAND |
|
409 | 409 | > PYTHONPATH="$PYTHONPATH" |
|
410 | 410 | > export PYTHONPATH |
|
411 | > $PYTHON "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" | |
|
411 | > "$PYTHON" "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" | |
|
412 | 412 | > EOF |
|
413 | 413 | |
|
414 | 414 | $ hg clone --ssh "sh ssh.sh" "ssh://user@dummy/$TESTTMP/remote" read-only-local |
@@ -455,7 +455,7 b' stderr from remote commands should be pr' | |||
|
455 | 455 | > [paths] |
|
456 | 456 | > default-push = ssh://user@dummy/remote |
|
457 | 457 | > [ui] |
|
458 | > ssh = $PYTHON "$TESTDIR/dummyssh" | |
|
458 | > ssh = "$PYTHON" "$TESTDIR/dummyssh" | |
|
459 | 459 | > [extensions] |
|
460 | 460 | > localwrite = localwrite.py |
|
461 | 461 | > EOF |
@@ -543,11 +543,11 b' remote hook failure is attributed to rem' | |||
|
543 | 543 | |
|
544 | 544 | $ echo "pretxnchangegroup.fail = python:$TESTTMP/failhook:hook" >> remote/.hg/hgrc |
|
545 | 545 | |
|
546 |
$ hg -q --config ui.ssh=" |
|
|
546 | $ hg -q --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" clone ssh://user@dummy/remote hookout | |
|
547 | 547 | $ cd hookout |
|
548 | 548 | $ touch hookfailure |
|
549 | 549 | $ hg -q commit -A -m 'remote hook failure' |
|
550 |
$ hg --config ui.ssh="$ |
|
|
550 | $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" push | |
|
551 | 551 | pushing to ssh://user@dummy/remote |
|
552 | 552 | searching for changes |
|
553 | 553 | remote: adding changesets |
@@ -569,7 +569,7 b' abort during pull is properly reported a' | |||
|
569 | 569 | > [extensions] |
|
570 | 570 | > crash = ${TESTDIR}/crashgetbundler.py |
|
571 | 571 | > EOF |
|
572 | $ hg --config ui.ssh="$PYTHON $TESTDIR/dummyssh" pull | |
|
572 | $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull | |
|
573 | 573 | pulling from ssh://user@dummy/remote |
|
574 | 574 | searching for changes |
|
575 | 575 | remote: abort: this is an exercise |
@@ -74,7 +74,7 b" subrepo debug for 'main' clone" | |||
|
74 | 74 | |
|
75 | 75 | subrepo paths with ssh urls |
|
76 | 76 | |
|
77 | $ hg clone -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/cloned sshclone | |
|
77 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/cloned sshclone | |
|
78 | 78 | requesting all changes |
|
79 | 79 | adding changesets |
|
80 | 80 | adding manifests |
@@ -89,7 +89,7 b' subrepo paths with ssh urls' | |||
|
89 | 89 | added 1 changesets with 1 changes to 1 files |
|
90 | 90 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
91 | 91 | |
|
92 | $ hg -R sshclone push -e "$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/cloned | |
|
92 | $ hg -R sshclone push -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/cloned | |
|
93 | 93 | pushing to ssh://user@dummy/$TESTTMP/cloned |
|
94 | 94 | pushing subrepo sub to ssh://user@dummy/$TESTTMP/sub |
|
95 | 95 | searching for changes |
@@ -147,13 +147,13 b' HTTP without the httpheader capability:' | |||
|
147 | 147 | |
|
148 | 148 | SSH (try to exercise the ssh functionality with a dummy script): |
|
149 | 149 | |
|
150 | $ hg debugwireargs --ssh "$PYTHON $TESTDIR/dummyssh" ssh://user@dummy/repo uno due tre quattro | |
|
150 | $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo uno due tre quattro | |
|
151 | 151 | uno due tre quattro None |
|
152 | $ hg debugwireargs --ssh "$PYTHON $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --four vier | |
|
152 | $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --four vier | |
|
153 | 153 | eins zwei None vier None |
|
154 | $ hg debugwireargs --ssh "$PYTHON $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei | |
|
154 | $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei | |
|
155 | 155 | eins zwei None None None |
|
156 | $ hg debugwireargs --ssh "$PYTHON $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --five fuenf | |
|
156 | $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --five fuenf | |
|
157 | 157 | eins zwei None None None |
|
158 | 158 | |
|
159 | 159 | Explicitly kill daemons to let the test exit on Windows |
General Comments 0
You need to be logged in to leave comments.
Login now