##// END OF EJS Templates
wireproto: mark SSHv2 as a version 1 transport...
Gregory Szorc -
r37310:27527d8c default
parent child Browse files
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> 385\n
1101 o> 403\n
1102 o> readline() -> 385:
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,30 +1279,32 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 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1282 TODO re-enable these once we're back to actually using v2 commands
1283 > command branches
1283
1284 > nodes 0000000000000000000000000000000000000000
1284 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1285 > EOF
1285 > command branches
1286 creating ssh peer from handshake results
1286 > nodes 0000000000000000000000000000000000000000
1287 sending branches command
1287 > EOF
1288 response:
1288 creating ssh peer from handshake results
1289 sending branches command
1290 response:
1289
1291
1290 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1292 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1291 > command changegroup
1293 > command changegroup
1292 > roots 0000000000000000000000000000000000000000
1294 > roots 0000000000000000000000000000000000000000
1293 > EOF
1295 > EOF
1294 creating ssh peer from handshake results
1296 creating ssh peer from handshake results
1295 sending changegroup command
1297 sending changegroup command
1296 response:
1298 response:
1297
1299
1298 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1300 $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
1299 > command changegroupsubset
1301 > command changegroupsubset
1300 > bases 0000000000000000000000000000000000000000
1302 > bases 0000000000000000000000000000000000000000
1301 > heads 0000000000000000000000000000000000000000
1303 > heads 0000000000000000000000000000000000000000
1302 > EOF
1304 > EOF
1303 creating ssh peer from handshake results
1305 creating ssh peer from handshake results
1304 sending changegroupsubset command
1306 sending changegroupsubset command
1305 response:
1307 response:
1306
1308
1307 $ cd ..
1309 $ cd ..
1308
1310
General Comments 0
You need to be logged in to leave comments. Login now