Show More
@@ -390,7 +390,8 b' Test debugpeer' | |||||
390 | pushable: yes |
|
390 | pushable: yes | |
391 |
|
391 | |||
392 | $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" --debug debugpeer ssh://user@dummy/debugrevlog |
|
392 | $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" --debug debugpeer ssh://user@dummy/debugrevlog | |
393 | running "*" "*/tests/dummyssh" 'user@dummy' 'hg -R debugrevlog serve --stdio' (glob) |
|
393 | running "*" "*/tests/dummyssh" 'user@dummy' 'hg -R debugrevlog serve --stdio' (glob) (no-windows !) | |
|
394 | running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !) | |||
394 | devel-peer-request: hello |
|
395 | devel-peer-request: hello | |
395 | sending hello command |
|
396 | sending hello command | |
396 | devel-peer-request: between |
|
397 | devel-peer-request: between |
@@ -17,7 +17,8 b'' | |||||
17 | Test a normal behaving server, for sanity |
|
17 | Test a normal behaving server, for sanity | |
18 |
|
18 | |||
19 | $ hg --debug debugpeer ssh://user@dummy/server |
|
19 | $ hg --debug debugpeer ssh://user@dummy/server | |
20 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
20 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
21 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
21 | devel-peer-request: hello |
|
22 | devel-peer-request: hello | |
22 | sending hello command |
|
23 | sending hello command | |
23 | devel-peer-request: between |
|
24 | devel-peer-request: between | |
@@ -63,7 +64,8 b' SSH banner is not printed by default, ig' | |||||
63 | --debug will print the banner |
|
64 | --debug will print the banner | |
64 |
|
65 | |||
65 | $ SSHSERVERMODE=banner hg --debug debugpeer ssh://user@dummy/server |
|
66 | $ SSHSERVERMODE=banner hg --debug debugpeer ssh://user@dummy/server | |
66 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
67 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
68 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
67 | devel-peer-request: hello |
|
69 | devel-peer-request: hello | |
68 | sending hello command |
|
70 | sending hello command | |
69 | devel-peer-request: between |
|
71 | devel-peer-request: between | |
@@ -114,7 +116,8 b' The client should refuse, as we dropped ' | |||||
114 | servers. |
|
116 | servers. | |
115 |
|
117 | |||
116 | $ SSHSERVERMODE=no-hello hg --debug debugpeer ssh://user@dummy/server |
|
118 | $ SSHSERVERMODE=no-hello hg --debug debugpeer ssh://user@dummy/server | |
117 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
119 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
120 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
118 | devel-peer-request: hello |
|
121 | devel-peer-request: hello | |
119 | sending hello command |
|
122 | sending hello command | |
120 | devel-peer-request: between |
|
123 | devel-peer-request: between | |
@@ -141,7 +144,8 b' Sending an unknown command to the server' | |||||
141 |
|
144 | |||
142 |
|
145 | |||
143 | $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server |
|
146 | $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server | |
144 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
147 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
148 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
145 | sending no-args command |
|
149 | sending no-args command | |
146 | devel-peer-request: hello |
|
150 | devel-peer-request: hello | |
147 | sending hello command |
|
151 | sending hello command | |
@@ -176,7 +180,8 b' Send multiple unknown commands before he' | |||||
176 |
|
180 | |||
177 |
|
181 | |||
178 | $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-multiple-no-args --debug debugpeer ssh://user@dummy/server |
|
182 | $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-multiple-no-args --debug debugpeer ssh://user@dummy/server | |
179 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
183 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
184 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
180 | sending unknown1 command |
|
185 | sending unknown1 command | |
181 | sending unknown2 command |
|
186 | sending unknown2 command | |
182 | sending unknown3 command |
|
187 | sending unknown3 command | |
@@ -405,7 +410,8 b' Send an upgrade request to a server that' | |||||
405 |
|
410 | |||
406 |
|
411 | |||
407 | $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server |
|
412 | $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server | |
408 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
413 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
414 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
409 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) |
|
415 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) | |
410 | devel-peer-request: hello |
|
416 | devel-peer-request: hello | |
411 | sending hello command |
|
417 | sending hello command | |
@@ -434,7 +440,8 b' Send an upgrade request to a server that' | |||||
434 | capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN |
|
440 | capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN | |
435 |
|
441 | |||
436 | $ SSHSERVERMODE=upgradev2 hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server |
|
442 | $ SSHSERVERMODE=upgradev2 hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server | |
437 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
443 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
444 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
438 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) |
|
445 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) | |
439 | devel-peer-request: hello |
|
446 | devel-peer-request: hello | |
440 | sending hello command |
|
447 | sending hello command | |
@@ -449,7 +456,8 b' Send an upgrade request to a server that' | |||||
449 | Verify the peer has capabilities |
|
456 | Verify the peer has capabilities | |
450 |
|
457 | |||
451 | $ SSHSERVERMODE=upgradev2 hg --config experimental.sshpeer.advertise-v2=true --debug debugcapabilities ssh://user@dummy/server |
|
458 | $ SSHSERVERMODE=upgradev2 hg --config experimental.sshpeer.advertise-v2=true --debug debugcapabilities ssh://user@dummy/server | |
452 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) |
|
459 | running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) | |
|
460 | running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) | |||
453 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) |
|
461 | sending upgrade request: * proto=exp-ssh-v2-0001 (glob) | |
454 | devel-peer-request: hello |
|
462 | devel-peer-request: hello | |
455 | sending hello command |
|
463 | sending hello command |
General Comments 0
You need to be logged in to leave comments.
Login now