##// END OF EJS Templates
tests: rely on dummyssh being the default...
Valentin Gatien-Baron -
r48732:9c4204b7 default
parent child Browse files
Show More
@@ -15,7 +15,6 b' setupcommon() {'
15 15 [extensions]
16 16 infinitepush=
17 17 [ui]
18 ssh = "$PYTHON" "$TESTDIR/dummyssh"
19 18 [infinitepush]
20 19 branchpattern=re:scratch/.*
21 20 EOF
@@ -2,7 +2,6 b' cat >> $HGRCPATH <<EOF'
2 2 [extensions]
3 3 narrow=
4 4 [ui]
5 ssh="$PYTHON" "$RUNTESTDIR/dummyssh"
6 5 [experimental]
7 6 changegroup3 = True
8 7 EOF
@@ -8,7 +8,6 b' remotefilelog='
8 8 rebase=
9 9 strip=
10 10 [ui]
11 ssh="$PYTHON" "$TESTDIR/dummyssh"
12 11 [server]
13 12 preferuncompressed=True
14 13 [experimental]
@@ -17,7 +17,6 b' global setup'
17 17
18 18 $ cat >> $HGRCPATH << EOF
19 19 > [ui]
20 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
21 20 > [server]
22 21 > concurrent-push-mode=check-related
23 22 > EOF
@@ -1143,7 +1143,6 b' Check hook preventing push (issue4455)'
1143 1143 > ssh=ssh://user@dummy/issue4455-dest
1144 1144 > http=http://localhost:$HGPORT/
1145 1145 > [ui]
1146 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1147 1146 > EOF
1148 1147 $ cat >> ../issue4455-dest/.hg/hgrc << EOF
1149 1148 > [hooks]
@@ -1270,7 +1269,6 b' Test that pre-pushkey compat for bookmar'
1270 1269
1271 1270 $ cat << EOF >> $HGRCPATH
1272 1271 > [ui]
1273 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1274 1272 > [server]
1275 1273 > bookmarks-pushkey-compat = yes
1276 1274 > EOF
@@ -29,7 +29,6 b' enable obsolescence'
29 29 > evolution.exchange=True
30 30 > bundle2-output-capture=True
31 31 > [ui]
32 > ssh="$PYTHON" "$TESTDIR/dummyssh"
33 32 > [command-templates]
34 33 > log={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
35 34 > [web]
@@ -924,7 +923,6 b' Test lazily acquiring the lock during un'
924 923 $ cp $TESTTMP/hgrc.orig $HGRCPATH
925 924 $ cat >> $HGRCPATH <<EOF
926 925 > [ui]
927 > ssh="$PYTHON" "$TESTDIR/dummyssh"
928 926 > EOF
929 927
930 928 $ cat >> $TESTTMP/locktester.py <<EOF
@@ -234,7 +234,6 b' Create an extension to test bundle2 API'
234 234 > [experimental]
235 235 > evolution.createmarkers=True
236 236 > [ui]
237 > ssh="$PYTHON" "$TESTDIR/dummyssh"
238 237 > [command-templates]
239 238 > log={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
240 239 > [web]
@@ -37,7 +37,6 b''
37 37
38 38 $ cat >> $HGRCPATH <<EOF
39 39 > [ui]
40 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
41 40 > username = nobody <no.reply@example.com>
42 41 >
43 42 > [alias]
@@ -95,7 +95,6 b' Start a simple HTTP server to serve bund'
95 95
96 96 $ cat >> $HGRCPATH << EOF
97 97 > [ui]
98 > ssh="$PYTHON" "$TESTDIR/dummyssh"
99 98 > [command-templates]
100 99 > log={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
101 100 > EOF
@@ -1125,7 +1125,7 b" Test that auto sharing doesn't cause fai"
1125 1125 $ hg id -R remote -r 0
1126 1126 abort: repository remote not found
1127 1127 [255]
1128 $ hg --config share.pool=share -q clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" a ssh://user@dummy/remote
1128 $ hg --config share.pool=share -q clone a ssh://user@dummy/remote
1129 1129 $ hg -R remote id -r 0
1130 1130 acb14030fe0a
1131 1131
@@ -208,7 +208,7 b' by old clients.'
208 208
209 209 Feature works over SSH
210 210
211 $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone
211 $ hg clone -U ssh://user@dummy/server ssh-full-clone
212 212 applying clone bundle from http://localhost:$HGPORT1/full.hg
213 213 adding changesets
214 214 adding manifests
@@ -644,12 +644,12 b' Test debugcapabilities command:'
644 644
645 645 Test debugpeer
646 646
647 $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" debugpeer ssh://user@dummy/debugrevlog
647 $ hg debugpeer ssh://user@dummy/debugrevlog
648 648 url: ssh://user@dummy/debugrevlog
649 649 local: no
650 650 pushable: yes
651 651
652 $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" --debug debugpeer ssh://user@dummy/debugrevlog
652 $ hg --debug debugpeer ssh://user@dummy/debugrevlog
653 653 running "*" "*/tests/dummyssh" 'user@dummy' 'hg -R debugrevlog serve --stdio' (glob) (no-windows !)
654 654 running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !)
655 655 devel-peer-request: hello+between
@@ -1,6 +1,5 b''
1 1 $ cat >> $HGRCPATH << EOF
2 2 > [ui]
3 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
4 3 > [extensions]
5 4 > fastannotate=
6 5 > [fastannotate]
@@ -10,7 +10,6 b' Setup'
10 10 $ . "$TESTDIR/library-infinitepush.sh"
11 11 $ cat >> $HGRCPATH <<EOF
12 12 > [ui]
13 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
14 13 > [alias]
15 14 > glog = log -GT "{rev}:{node|short} {desc}\n{phase}"
16 15 > EOF
@@ -123,7 +123,7 b' test failure'
123 123
124 124 init+push to remote2
125 125
126 $ hg init -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2
126 $ hg init ssh://user@dummy/remote2
127 127 $ hg incoming -R remote2 local
128 128 comparing with local
129 129 changeset: 0:08b9e9f63b32
@@ -133,7 +133,7 b' init+push to remote2'
133 133 summary: init
134 134
135 135
136 $ hg push -R local -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2
136 $ hg push -R local ssh://user@dummy/remote2
137 137 pushing to ssh://user@dummy/remote2
138 138 searching for changes
139 139 remote: adding changesets
@@ -143,7 +143,7 b' init+push to remote2'
143 143
144 144 clone to remote1
145 145
146 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1
146 $ hg clone local ssh://user@dummy/remote1
147 147 searching for changes
148 148 remote: adding changesets
149 149 remote: adding manifests
@@ -151,7 +151,7 b' clone to remote1'
151 151 remote: added 1 changesets with 1 changes to 1 files
152 152
153 153 The largefiles extension doesn't crash
154 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remotelf --config extensions.largefiles=
154 $ hg clone local ssh://user@dummy/remotelf --config extensions.largefiles=
155 155 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !)
156 156 The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !)
157 157 searching for changes
@@ -162,14 +162,14 b" The largefiles extension doesn't crash"
162 162
163 163 init to existing repo
164 164
165 $ hg init -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1
165 $ hg init ssh://user@dummy/remote1
166 166 abort: repository remote1 already exists
167 167 abort: could not create remote repo
168 168 [255]
169 169
170 170 clone to existing repo
171 171
172 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1
172 $ hg clone local ssh://user@dummy/remote1
173 173 abort: repository remote1 already exists
174 174 abort: could not create remote repo
175 175 [255]
@@ -283,7 +283,7 b' clone bookmarks'
283 283 $ hg -R local bookmark test
284 284 $ hg -R local bookmarks
285 285 * test 0:08b9e9f63b32
286 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks
286 $ hg clone local ssh://user@dummy/remote-bookmarks
287 287 searching for changes
288 288 remote: adding changesets
289 289 remote: adding manifests
@@ -124,7 +124,7 b' used all HGPORTs, kill all daemons'
124 124 #endif
125 125
126 126 vanilla clients locked out from largefiles ssh repos
127 $ hg --config extensions.largefiles=! clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5
127 $ hg --config extensions.largefiles=! clone ssh://user@dummy/r4 r5
128 128 remote:
129 129 remote: This repository uses the largefiles extension.
130 130 remote:
@@ -2516,10 +2516,10 b' New namespace is registered per repo ins'
2516 2516 is global. So we shouldn't expect the namespace always exists. Using
2517 2517 ssh:// makes sure a bundle repository is created from scratch. (issue6301)
2518 2518
2519 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" \
2519 $ hg clone \
2520 2520 > -qr0 "ssh://user@dummy/`pwd`/a" a-clone
2521 2521 $ hg incoming --config extensions.names=names.py -R a-clone \
2522 > -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -T '{bars}\n' -l1
2522 > -T '{bars}\n' -l1
2523 2523 comparing with ssh://user@dummy/$TESTTMP/a
2524 2524 searching for changes
2525 2525
@@ -3,7 +3,6 b' Testing the functionality to pull remote'
3 3
4 4 $ cat >> $HGRCPATH << EOF
5 5 > [ui]
6 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
7 6 > [alias]
8 7 > glog = log -G -T '{rev}:{node|short} {desc}'
9 8 > [extensions]
@@ -26,7 +26,6 b" some capability (because it's running an"
26 26 > EOF
27 27 $ cat >> .hg/hgrc <<EOF
28 28 > [ui]
29 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
30 29 > EOF
31 30
32 31 $ hg pull ssh://user@dummy/repo1 -r tip -B a
@@ -868,7 +868,7 b' Simple case'
868 868
869 869 No race condition
870 870
871 $ hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone --debug | egrep '00(changelog|manifest)'
871 $ hg clone -U --stream ssh://user@dummy/test-repo stream-clone --debug | egrep '00(changelog|manifest)'
872 872 adding [s] 00manifest.n (62 bytes)
873 873 adding [s] 00manifest-*.nd (118 KB) (glob)
874 874 adding [s] 00changelog.n (62 bytes)
@@ -933,7 +933,7 b' Prepare a commit'
933 933
934 934 Do a mix of clone and commit at the same time so that the file listed on disk differ at actual transfer time.
935 935
936 $ (hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone-race-1 --debug 2>> clone-output | egrep '00(changelog|manifest)' >> clone-output; touch $HG_TEST_STREAM_WALKED_FILE_3) &
936 $ (hg clone -U --stream ssh://user@dummy/test-repo stream-clone-race-1 --debug 2>> clone-output | egrep '00(changelog|manifest)' >> clone-output; touch $HG_TEST_STREAM_WALKED_FILE_3) &
937 937 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1
938 938 $ hg -R test-repo/ commit -m foo
939 939 $ touch $HG_TEST_STREAM_WALKED_FILE_2
@@ -1030,7 +1030,7 b' Check the initial state'
1030 1030 Performe the mix of clone and full refresh of the nodemap, so that the files
1031 1031 (and filenames) are different between listing time and actual transfer time.
1032 1032
1033 $ (hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone-race-2 --debug 2>> clone-output-2 | egrep '00(changelog|manifest)' >> clone-output-2; touch $HG_TEST_STREAM_WALKED_FILE_3) &
1033 $ (hg clone -U --stream ssh://user@dummy/test-repo stream-clone-race-2 --debug 2>> clone-output-2 | egrep '00(changelog|manifest)' >> clone-output-2; touch $HG_TEST_STREAM_WALKED_FILE_3) &
1034 1034 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1
1035 1035 $ rm test-repo/.hg/store/00changelog.n
1036 1036 $ rm test-repo/.hg/store/00changelog-*.nd
@@ -102,7 +102,6 b' A set of extension and shell functions e'
102 102
103 103 $ cat >> $HGRCPATH << EOF
104 104 > [ui]
105 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
106 105 > # simplify output
107 106 > logtemplate = {node|short} {desc} ({branch})
108 107 > [phases]
@@ -160,7 +160,7 b' hg serve shared clone'
160 160 Cloning a shared repo via bundle2 results in a non-shared clone
161 161
162 162 $ cd ..
163 $ hg clone -q --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
163 $ hg clone -q --stream ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
164 164 $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
165 165 [1]
166 166 $ hg id --cwd cloned-via-bundle2 -r tip
@@ -2,7 +2,6 b' test sparse'
2 2
3 3 $ cat >> $HGRCPATH << EOF
4 4 > [ui]
5 > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh"
6 5 > username = nobody <no.reply@fb.com>
7 6 > [extensions]
8 7 > sparse=
@@ -9,7 +9,7 b' Checking that when lookup multiple bookm'
9 9 fails (thus causing the sshpeer to be stopped), the errors from the
10 10 further lookups don't result in tracebacks.
11 11
12 $ hg pull -r b0 -r nosuchbookmark $(for i in $($TESTDIR/seq.py 1 20); do echo -r b$i; done) -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/$(pwd)/../a
12 $ hg pull -r b0 -r nosuchbookmark $(for i in $($TESTDIR/seq.py 1 20); do echo -r b$i; done) ssh://user@dummy/$(pwd)/../a
13 13 pulling from ssh://user@dummy/$TESTTMP/b/../a
14 14 abort: unknown revision 'nosuchbookmark'
15 15 [255]
@@ -52,7 +52,7 b' configure for serving'
52 52
53 53 repo not found error
54 54
55 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
55 $ hg clone ssh://user@dummy/nonexistent local
56 56 remote: abort: repository nonexistent not found
57 57 abort: no suitable response from remote hg
58 58 [255]
@@ -60,7 +60,7 b' repo not found error'
60 60 non-existent absolute path
61 61
62 62 #if no-msys
63 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy//`pwd`/nonexistent local
63 $ hg clone ssh://user@dummy//`pwd`/nonexistent local
64 64 remote: abort: repository /$TESTTMP/nonexistent not found
65 65 abort: no suitable response from remote hg
66 66 [255]
@@ -70,7 +70,7 b' clone remote via stream'
70 70
71 71 #if no-reposimplestore
72 72
73 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/remote local-stream
73 $ hg clone --stream ssh://user@dummy/remote local-stream
74 74 streaming all changes
75 75 4 files to transfer, 602 bytes of data (no-zstd !)
76 76 transferred 602 bytes in * seconds (*) (glob) (no-zstd !)
@@ -94,7 +94,7 b' clone remote via stream'
94 94 clone bookmarks via stream
95 95
96 96 $ hg -R local-stream book mybook
97 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2
97 $ hg clone --stream ssh://user@dummy/local-stream stream2
98 98 streaming all changes
99 99 4 files to transfer, 602 bytes of data (no-zstd !)
100 100 transferred 602 bytes in * seconds (*) (glob) (no-zstd !)
@@ -114,7 +114,7 b' clone bookmarks via stream'
114 114
115 115 clone remote via pull
116 116
117 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local
117 $ hg clone ssh://user@dummy/remote local
118 118 requesting all changes
119 119 adding changesets
120 120 adding manifests
@@ -142,14 +142,14 b' empty default pull'
142 142
143 143 $ hg paths
144 144 default = ssh://user@dummy/remote
145 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\""
145 $ hg pull
146 146 pulling from ssh://user@dummy/remote
147 147 searching for changes
148 148 no changes found
149 149
150 150 pull from wrong ssh URL
151 151
152 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist
152 $ hg pull ssh://user@dummy/doesnotexist
153 153 pulling from ssh://user@dummy/doesnotexist
154 154 remote: abort: repository doesnotexist not found
155 155 abort: no suitable response from remote hg
@@ -181,7 +181,7 b' find outgoing'
181 181
182 182 find incoming on the remote side
183 183
184 $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/local
184 $ hg incoming -R ../remote ssh://user@dummy/local
185 185 comparing with ssh://user@dummy/local
186 186 searching for changes
187 187 changeset: 3:a28a9d1a809c
@@ -194,7 +194,7 b' find incoming on the remote side'
194 194
195 195 find incoming on the remote side (using absolute path)
196 196
197 $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`"
197 $ hg incoming -R ../remote "ssh://user@dummy/`pwd`"
198 198 comparing with ssh://user@dummy/$TESTTMP/local
199 199 searching for changes
200 200 changeset: 3:a28a9d1a809c
@@ -241,7 +241,7 b' check remote tip'
241 241 test pushkeys and bookmarks
242 242
243 243 $ cd $TESTTMP/local
244 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces
244 $ hg debugpushkey ssh://user@dummy/remote namespaces
245 245 bookmarks
246 246 namespaces
247 247 phases
@@ -256,7 +256,7 b' test pushkeys and bookmarks'
256 256 no changes found
257 257 exporting bookmark foo
258 258 [1]
259 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks
259 $ hg debugpushkey ssh://user@dummy/remote bookmarks
260 260 foo 1160648e36cec0054048a7edc4110c6f84fde594
261 261 $ hg book -f foo
262 262 $ hg push --traceback
@@ -328,7 +328,7 b' clone bookmarks'
328 328 $ hg -R ../remote bookmark test
329 329 $ hg -R ../remote bookmarks
330 330 * test 4:6c0482d977a3
331 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks
331 $ hg clone ssh://user@dummy/remote local-bookmarks
332 332 requesting all changes
333 333 adding changesets
334 334 adding manifests
@@ -356,21 +356,21 b' hide outer repo'
356 356
357 357 Test remote paths with spaces (issue2983):
358 358
359 $ hg init --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
359 $ hg init "ssh://user@dummy/a repo"
360 360 $ touch "$TESTTMP/a repo/test"
361 361 $ hg -R 'a repo' commit -A -m "test"
362 362 adding test
363 363 $ hg -R 'a repo' tag tag
364 $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
364 $ hg id "ssh://user@dummy/a repo"
365 365 73649e48688a
366 366
367 $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO"
367 $ hg id "ssh://user@dummy/a repo#noNoNO"
368 368 abort: unknown revision 'noNoNO'
369 369 [255]
370 370
371 371 Test (non-)escaping of remote paths with spaces when cloning (issue3145):
372 372
373 $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
373 $ hg clone "ssh://user@dummy/a repo"
374 374 destination directory: a repo
375 375 abort: destination 'a repo' is not empty
376 376 [10]
@@ -463,7 +463,6 b' stderr from remote commands should be pr'
463 463 > [paths]
464 464 > default-push = ssh://user@dummy/remote
465 465 > [ui]
466 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
467 466 > [extensions]
468 467 > localwrite = localwrite.py
469 468 > EOF
@@ -583,11 +582,11 b' remote hook failure is attributed to rem'
583 582
584 583 $ echo "pretxnchangegroup.fail = python:$TESTTMP/failhook:hook" >> remote/.hg/hgrc
585 584
586 $ hg -q --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" clone ssh://user@dummy/remote hookout
585 $ hg -q clone ssh://user@dummy/remote hookout
587 586 $ cd hookout
588 587 $ touch hookfailure
589 588 $ hg -q commit -A -m 'remote hook failure'
590 $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" push
589 $ hg push
591 590 pushing to ssh://user@dummy/remote
592 591 searching for changes
593 592 remote: adding changesets
@@ -607,7 +606,7 b' abort during pull is properly reported a'
607 606 > [extensions]
608 607 > crash = ${TESTDIR}/crashgetbundler.py
609 608 > EOF
610 $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull
609 $ hg pull
611 610 pulling from ssh://user@dummy/remote
612 611 searching for changes
613 612 adding changesets
@@ -29,7 +29,6 b' protocols with inline conditional output'
29 29
30 30 $ cat >> $HGRCPATH << EOF
31 31 > [ui]
32 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
33 32 > [devel]
34 33 > debug.peer-request = true
35 34 > [extensions]
@@ -8,7 +8,6 b' initial setup'
8 8
9 9 $ cat << EOF >> $HGRCPATH
10 10 > [ui]
11 > ssh="$PYTHON" "$TESTDIR/dummyssh"
12 11 > EOF
13 12
14 13 repository itself is non-readable
@@ -42,18 +42,18 b' configure for serving'
42 42
43 43 repo not found error
44 44
45 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
45 $ hg clone ssh://user@dummy/nonexistent local
46 46 remote: abort: repository nonexistent not found
47 47 abort: no suitable response from remote hg
48 48 [255]
49 $ hg clone -q -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
49 $ hg clone -q ssh://user@dummy/nonexistent local
50 50 remote: abort: repository nonexistent not found
51 51 abort: no suitable response from remote hg
52 52 [255]
53 53
54 54 non-existent absolute path
55 55
56 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/nonexistent local
56 $ hg clone ssh://user@dummy/`pwd`/nonexistent local
57 57 remote: abort: repository $TESTTMP/nonexistent not found
58 58 abort: no suitable response from remote hg
59 59 [255]
@@ -62,7 +62,7 b' clone remote via stream'
62 62
63 63 #if no-reposimplestore
64 64
65 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/remote local-stream
65 $ hg clone --stream ssh://user@dummy/remote local-stream
66 66 streaming all changes
67 67 8 files to transfer, 827 bytes of data (no-zstd !)
68 68 transferred 827 bytes in * seconds (*) (glob) (no-zstd !)
@@ -84,7 +84,7 b' clone remote via stream'
84 84 clone bookmarks via stream
85 85
86 86 $ hg -R local-stream book mybook
87 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2
87 $ hg clone --stream ssh://user@dummy/local-stream stream2
88 88 streaming all changes
89 89 15 files to transfer, * of data (glob)
90 90 transferred * in * seconds (*) (glob)
@@ -100,7 +100,7 b' clone bookmarks via stream'
100 100
101 101 clone remote via pull
102 102
103 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local
103 $ hg clone ssh://user@dummy/remote local
104 104 requesting all changes
105 105 adding changesets
106 106 adding manifests
@@ -128,14 +128,14 b' empty default pull'
128 128
129 129 $ hg paths
130 130 default = ssh://user@dummy/remote
131 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\""
131 $ hg pull
132 132 pulling from ssh://user@dummy/remote
133 133 searching for changes
134 134 no changes found
135 135
136 136 pull from wrong ssh URL
137 137
138 $ hg pull -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/doesnotexist
138 $ hg pull ssh://user@dummy/doesnotexist
139 139 pulling from ssh://user@dummy/doesnotexist
140 140 remote: abort: repository doesnotexist not found
141 141 abort: no suitable response from remote hg
@@ -167,7 +167,7 b' find outgoing'
167 167
168 168 find incoming on the remote side
169 169
170 $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/local
170 $ hg incoming -R ../remote ssh://user@dummy/local
171 171 comparing with ssh://user@dummy/local
172 172 searching for changes
173 173 changeset: 3:a28a9d1a809c
@@ -180,7 +180,7 b' find incoming on the remote side'
180 180
181 181 find incoming on the remote side (using absolute path)
182 182
183 $ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`"
183 $ hg incoming -R ../remote "ssh://user@dummy/`pwd`"
184 184 comparing with ssh://user@dummy/$TESTTMP/local
185 185 searching for changes
186 186 changeset: 3:a28a9d1a809c
@@ -227,7 +227,7 b' check remote tip'
227 227 test pushkeys and bookmarks
228 228
229 229 $ cd $TESTTMP/local
230 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces
230 $ hg debugpushkey ssh://user@dummy/remote namespaces
231 231 bookmarks
232 232 namespaces
233 233 phases
@@ -242,7 +242,7 b' test pushkeys and bookmarks'
242 242 no changes found
243 243 exporting bookmark foo
244 244 [1]
245 $ hg debugpushkey --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote bookmarks
245 $ hg debugpushkey ssh://user@dummy/remote bookmarks
246 246 foo 1160648e36cec0054048a7edc4110c6f84fde594
247 247 $ hg book -f foo
248 248 $ hg push --traceback
@@ -347,7 +347,7 b' clone bookmarks'
347 347 $ hg -R ../remote bookmark test
348 348 $ hg -R ../remote bookmarks
349 349 * test 4:6c0482d977a3
350 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote local-bookmarks
350 $ hg clone ssh://user@dummy/remote local-bookmarks
351 351 requesting all changes
352 352 adding changesets
353 353 adding manifests
@@ -375,21 +375,21 b' hide outer repo'
375 375
376 376 Test remote paths with spaces (issue2983):
377 377
378 $ hg init --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
378 $ hg init "ssh://user@dummy/a repo"
379 379 $ touch "$TESTTMP/a repo/test"
380 380 $ hg -R 'a repo' commit -A -m "test"
381 381 adding test
382 382 $ hg -R 'a repo' tag tag
383 $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
383 $ hg id "ssh://user@dummy/a repo"
384 384 73649e48688a
385 385
386 $ hg id --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO"
386 $ hg id "ssh://user@dummy/a repo#noNoNO"
387 387 abort: unknown revision 'noNoNO'
388 388 [255]
389 389
390 390 Test (non-)escaping of remote paths with spaces when cloning (issue3145):
391 391
392 $ hg clone --ssh "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
392 $ hg clone "ssh://user@dummy/a repo"
393 393 destination directory: a repo
394 394 abort: destination 'a repo' is not empty
395 395 [10]
@@ -516,7 +516,6 b' stderr from remote commands should be pr'
516 516 > [paths]
517 517 > default-push = ssh://user@dummy/remote
518 518 > [ui]
519 > ssh = "$PYTHON" "$TESTDIR/dummyssh"
520 519 > [extensions]
521 520 > localwrite = localwrite.py
522 521 > EOF
@@ -670,11 +669,11 b' remote hook failure is attributed to rem'
670 669
671 670 $ echo "pretxnchangegroup.fail = python:$TESTTMP/failhook:hook" >> remote/.hg/hgrc
672 671
673 $ hg -q --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" clone ssh://user@dummy/remote hookout
672 $ hg -q clone ssh://user@dummy/remote hookout
674 673 $ cd hookout
675 674 $ touch hookfailure
676 675 $ hg -q commit -A -m 'remote hook failure'
677 $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" push
676 $ hg push
678 677 pushing to ssh://user@dummy/remote
679 678 searching for changes
680 679 remote: adding changesets
@@ -695,7 +694,7 b' abort during pull is properly reported a'
695 694 > [extensions]
696 695 > crash = ${TESTDIR}/crashgetbundler.py
697 696 > EOF
698 $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull
697 $ hg pull
699 698 pulling from ssh://user@dummy/remote
700 699 searching for changes
701 700 remote: abort: this is an exercise
@@ -704,14 +703,14 b' abort during pull is properly reported a'
704 703
705 704 abort with no error hint when there is a ssh problem when pulling
706 705
707 $ hg pull ssh://brokenrepository -e "\"$PYTHON\" \"$TESTDIR/dummyssh\""
706 $ hg pull ssh://brokenrepository
708 707 pulling from ssh://brokenrepository/
709 708 abort: no suitable response from remote hg
710 709 [255]
711 710
712 711 abort with configured error hint when there is a ssh problem when pulling
713 712
714 $ hg pull ssh://brokenrepository -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" \
713 $ hg pull ssh://brokenrepository \
715 714 > --config ui.ssherrorhint="Please see http://company/internalwiki/ssh.html"
716 715 pulling from ssh://brokenrepository/
717 716 abort: no suitable response from remote hg
@@ -14,7 +14,6 b' Test creating a consuming stream bundle '
14 14 > evolution.exchange=True
15 15 > bundle2-output-capture=True
16 16 > [ui]
17 > ssh="$PYTHON" "$TESTDIR/dummyssh"
18 17 > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
19 18 > [web]
20 19 > push_ssl = false
@@ -186,7 +186,7 b' subrepo is referenced by absolute path.'
186 186
187 187 subrepo paths with ssh urls
188 188
189 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/cloned sshclone
189 $ hg clone ssh://user@dummy/cloned sshclone
190 190 requesting all changes
191 191 adding changesets
192 192 adding manifests
@@ -203,7 +203,7 b' subrepo paths with ssh urls'
203 203 new changesets 863c1745b441
204 204 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
205 205
206 $ hg -R sshclone push -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/cloned
206 $ hg -R sshclone push ssh://user@dummy/`pwd`/cloned
207 207 pushing to ssh://user@dummy/$TESTTMP/cloned
208 208 pushing subrepo sub to ssh://user@dummy/$TESTTMP/sub
209 209 searching for changes
@@ -2,7 +2,7 b' Test that, when an hg push is interrupte'
2 2 the remote hg is able to successfully roll back the transaction.
3 3
4 4 $ hg init -q remote
5 $ hg clone -e "\"$PYTHON\" \"$RUNTESTDIR/dummyssh\"" -q ssh://user@dummy/`pwd`/remote local
5 $ hg clone -q ssh://user@dummy/`pwd`/remote local
6 6 $ SIGPIPE_REMOTE_DEBUG_FILE="$TESTTMP/DEBUGFILE"
7 7 $ SYNCFILE1="$TESTTMP/SYNCFILE1"
8 8 $ SYNCFILE2="$TESTTMP/SYNCFILE2"
@@ -36,7 +36,7 b' disconnecting. Then exit nonzero, to for'
36 36
37 37 (use quiet to avoid flacky output from the server)
38 38
39 $ hg push --quiet -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --remotecmd "$remotecmd"
39 $ hg push --quiet --remotecmd "$remotecmd"
40 40 abort: stream ended unexpectedly (got 0 bytes, expected 4)
41 41 [255]
42 42 $ cat $SIGPIPE_REMOTE_DEBUG_FILE
@@ -1,6 +1,5 b''
1 1 $ cat << EOF >> $HGRCPATH
2 2 > [ui]
3 > ssh="$PYTHON" "$TESTDIR/dummyssh"
4 3 > EOF
5 4
6 5 Set up repo
@@ -142,13 +142,13 b' HTTP without the httpheader capability:'
142 142
143 143 SSH (try to exercise the ssh functionality with a dummy script):
144 144
145 $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo uno due tre quattro
145 $ hg debugwireargs ssh://user@dummy/repo uno due tre quattro
146 146 uno due tre quattro None
147 $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --four vier
147 $ hg debugwireargs ssh://user@dummy/repo eins zwei --four vier
148 148 eins zwei None vier None
149 $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei
149 $ hg debugwireargs ssh://user@dummy/repo eins zwei
150 150 eins zwei None None None
151 $ hg debugwireargs --ssh "\"$PYTHON\" $TESTDIR/dummyssh" ssh://user@dummy/repo eins zwei --five fuenf
151 $ hg debugwireargs ssh://user@dummy/repo eins zwei --five fuenf
152 152 eins zwei None None None
153 153
154 154 Explicitly kill daemons to let the test exit on Windows
General Comments 0
You need to be logged in to leave comments. Login now