Show More
@@ -22,7 +22,8 b' TRANSPORTS = {' | |||||
22 | }, |
|
22 | }, | |
23 | SSHV2: { |
|
23 | SSHV2: { | |
24 | 'transport': 'ssh', |
|
24 | 'transport': 'ssh', | |
25 | 'version': 2, |
|
25 | # TODO mark as version 2 once all commands are implemented. | |
|
26 | 'version': 1, | |||
26 | }, |
|
27 | }, | |
27 | 'http-v1': { |
|
28 | 'http-v1': { | |
28 | 'transport': 'http', |
|
29 | 'transport': 'http', |
@@ -1098,9 +1098,9 b' Command after upgrade to version 2 is pr' | |||||
1098 | i> write(6) -> 6: |
|
1098 | i> write(6) -> 6: | |
1099 | i> hello\n |
|
1099 | i> hello\n | |
1100 | o> readline() -> 4: |
|
1100 | o> readline() -> 4: | |
1101 |
o> 3 |
|
1101 | o> 403\n | |
1102 |
o> readline() -> 3 |
|
1102 | o> readline() -> 403: | |
1103 | o> capabilities: lookup branchmap pushkey known getbundle unbundlehash streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n |
|
1103 | o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n | |
1104 |
|
1104 | |||
1105 | Multiple upgrades is not allowed |
|
1105 | Multiple upgrades is not allowed | |
1106 |
|
1106 | |||
@@ -1279,6 +1279,8 b' Upgrade request must be followed by hell' | |||||
1279 |
|
1279 | |||
1280 | Legacy commands are not exposed to version 2 of protocol |
|
1280 | Legacy commands are not exposed to version 2 of protocol | |
1281 |
|
1281 | |||
|
1282 | TODO re-enable these once we're back to actually using v2 commands | |||
|
1283 | ||||
1282 |
|
|
1284 | $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF | |
1283 |
|
|
1285 | > command branches | |
1284 |
|
|
1286 | > nodes 0000000000000000000000000000000000000000 |
General Comments 0
You need to be logged in to leave comments.
Login now