comparison tests/test-ssh-proto.t @ 40176:41263df08109

wireprotov2: change how revisions are specified to changesetdata Right now, we have a handful of arguments for specifying the revisions whose data should be returned. Defining how all these arguments interact when various combinations are present is difficult. This commit establishes a new, generic mechanism for specifying revisions. Instead of a hodgepodge of arguments defining things, we have a list of dicts that specify revision selectors. The final set of revisions is a union of all these selectors. We implement support for specifying revisions based on: * An explicit list of changeset revisions * An explicit list of changeset revisions plus ancestry depth * A DAG range between changeset roots and heads If you squint hard enough, this problem has already been solved by revsets. But I'm reluctant to expose revsets to the wire protocol because that would require servers to implement a revset parser. Plus there are security and performance implications: the set of revision selectors needs to be narrowly and specifically tailored for what is appropriate to be executing on a server. Perhaps there would be a way for us to express the "parse tree" of a revset query, for example. I'm not sure. We can explore this space another time. For now, the new mechanism should bring sufficient flexibility while remaining relatively simple. The selector "types" are prefixed with "changeset" because I plan to add manifest and file-flavored selectors as well. This will enable us to e.g. select file revisions based on a range of changeset revisions. Differential Revision: https://phab.mercurial-scm.org/D4979
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 08 Oct 2018 18:17:12 -0700
parents d059cb669632
children 1a1b957f5f2a
comparison
equal deleted inserted replaced
40175:6c42409691ec 40176:41263df08109
952 $ cd .. 952 $ cd ..
953 953
954 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server 954 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
955 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) 955 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
956 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) 956 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
957 sending upgrade request: * proto=exp-ssh-v2-0002 (glob) 957 sending upgrade request: * proto=exp-ssh-v2-0003 (glob)
958 devel-peer-request: hello+between 958 devel-peer-request: hello+between
959 devel-peer-request: pairs: 81 bytes 959 devel-peer-request: pairs: 81 bytes
960 sending hello command 960 sending hello command
961 sending between command 961 sending between command
962 remote: 0 962 remote: 0
982 982
983 $ cd server 983 $ cd server
984 984
985 $ hg debugwireproto --localssh --peer raw << EOF 985 $ hg debugwireproto --localssh --peer raw << EOF
986 > raw 986 > raw
987 > upgrade this-is-some-token proto=exp-ssh-v2-0002\n 987 > upgrade this-is-some-token proto=exp-ssh-v2-0003\n
988 > hello\n 988 > hello\n
989 > between\n 989 > between\n
990 > pairs 81\n 990 > pairs 81\n
991 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 991 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
992 > readline 992 > readline
993 > readline 993 > readline
994 > readline 994 > readline
995 > EOF 995 > EOF
996 using raw connection to peer 996 using raw connection to peer
997 i> write(153) -> 153: 997 i> write(153) -> 153:
998 i> upgrade this-is-some-token proto=exp-ssh-v2-0002\n 998 i> upgrade this-is-some-token proto=exp-ssh-v2-0003\n
999 i> hello\n 999 i> hello\n
1000 i> between\n 1000 i> between\n
1001 i> pairs 81\n 1001 i> pairs 81\n
1002 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1002 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1003 o> readline() -> 44: 1003 o> readline() -> 44:
1004 o> upgraded this-is-some-token exp-ssh-v2-0002\n 1004 o> upgraded this-is-some-token exp-ssh-v2-0003\n
1005 o> readline() -> 4: 1005 o> readline() -> 4:
1006 o> 426\n 1006 o> 426\n
1007 o> readline() -> 427: 1007 o> readline() -> 427:
1008 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n 1008 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
1009 1009
1010 $ cd .. 1010 $ cd ..
1011 1011
1012 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server 1012 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
1013 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) 1013 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
1014 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) 1014 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
1015 sending upgrade request: * proto=exp-ssh-v2-0002 (glob) 1015 sending upgrade request: * proto=exp-ssh-v2-0003 (glob)
1016 devel-peer-request: hello+between 1016 devel-peer-request: hello+between
1017 devel-peer-request: pairs: 81 bytes 1017 devel-peer-request: pairs: 81 bytes
1018 sending hello command 1018 sending hello command
1019 sending between command 1019 sending between command
1020 protocol upgraded to exp-ssh-v2-0002 1020 protocol upgraded to exp-ssh-v2-0003
1021 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1021 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1022 devel-peer-request: protocaps 1022 devel-peer-request: protocaps
1023 devel-peer-request: caps: * bytes (glob) 1023 devel-peer-request: caps: * bytes (glob)
1024 sending protocaps command 1024 sending protocaps command
1025 url: ssh://user@dummy/server 1025 url: ssh://user@dummy/server
1029 Verify the peer has capabilities 1029 Verify the peer has capabilities
1030 1030
1031 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugcapabilities ssh://user@dummy/server 1031 $ hg --config experimental.sshpeer.advertise-v2=true --debug debugcapabilities ssh://user@dummy/server
1032 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !) 1032 running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
1033 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !) 1033 running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
1034 sending upgrade request: * proto=exp-ssh-v2-0002 (glob) 1034 sending upgrade request: * proto=exp-ssh-v2-0003 (glob)
1035 devel-peer-request: hello+between 1035 devel-peer-request: hello+between
1036 devel-peer-request: pairs: 81 bytes 1036 devel-peer-request: pairs: 81 bytes
1037 sending hello command 1037 sending hello command
1038 sending between command 1038 sending between command
1039 protocol upgraded to exp-ssh-v2-0002 1039 protocol upgraded to exp-ssh-v2-0003
1040 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1040 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1041 devel-peer-request: protocaps 1041 devel-peer-request: protocaps
1042 devel-peer-request: caps: * bytes (glob) 1042 devel-peer-request: caps: * bytes (glob)
1043 sending protocaps command 1043 sending protocaps command
1044 Main capabilities: 1044 Main capabilities:
1085 1085
1086 $ cd server 1086 $ cd server
1087 1087
1088 $ hg debugwireproto --localssh --peer raw << EOF 1088 $ hg debugwireproto --localssh --peer raw << EOF
1089 > raw 1089 > raw
1090 > upgrade this-is-some-token proto=exp-ssh-v2-0002\n 1090 > upgrade this-is-some-token proto=exp-ssh-v2-0003\n
1091 > hello\n 1091 > hello\n
1092 > between\n 1092 > between\n
1093 > pairs 81\n 1093 > pairs 81\n
1094 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1094 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1095 > readline 1095 > readline
1100 > readline 1100 > readline
1101 > readline 1101 > readline
1102 > EOF 1102 > EOF
1103 using raw connection to peer 1103 using raw connection to peer
1104 i> write(153) -> 153: 1104 i> write(153) -> 153:
1105 i> upgrade this-is-some-token proto=exp-ssh-v2-0002\n 1105 i> upgrade this-is-some-token proto=exp-ssh-v2-0003\n
1106 i> hello\n 1106 i> hello\n
1107 i> between\n 1107 i> between\n
1108 i> pairs 81\n 1108 i> pairs 81\n
1109 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1109 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1110 o> readline() -> 44: 1110 o> readline() -> 44:
1111 o> upgraded this-is-some-token exp-ssh-v2-0002\n 1111 o> upgraded this-is-some-token exp-ssh-v2-0003\n
1112 o> readline() -> 4: 1112 o> readline() -> 4:
1113 o> 426\n 1113 o> 426\n
1114 o> readline() -> 427: 1114 o> readline() -> 427:
1115 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n 1115 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
1116 i> write(6) -> 6: 1116 i> write(6) -> 6:
1122 1122
1123 Multiple upgrades is not allowed 1123 Multiple upgrades is not allowed
1124 1124
1125 $ hg debugwireproto --localssh --peer raw << EOF 1125 $ hg debugwireproto --localssh --peer raw << EOF
1126 > raw 1126 > raw
1127 > upgrade this-is-some-token proto=exp-ssh-v2-0002\n 1127 > upgrade this-is-some-token proto=exp-ssh-v2-0003\n
1128 > hello\n 1128 > hello\n
1129 > between\n 1129 > between\n
1130 > pairs 81\n 1130 > pairs 81\n
1131 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1131 > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1132 > readline 1132 > readline
1138 > readline 1138 > readline
1139 > readavailable 1139 > readavailable
1140 > EOF 1140 > EOF
1141 using raw connection to peer 1141 using raw connection to peer
1142 i> write(153) -> 153: 1142 i> write(153) -> 153:
1143 i> upgrade this-is-some-token proto=exp-ssh-v2-0002\n 1143 i> upgrade this-is-some-token proto=exp-ssh-v2-0003\n
1144 i> hello\n 1144 i> hello\n
1145 i> between\n 1145 i> between\n
1146 i> pairs 81\n 1146 i> pairs 81\n
1147 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1147 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1148 o> readline() -> 44: 1148 o> readline() -> 44:
1149 o> upgraded this-is-some-token exp-ssh-v2-0002\n 1149 o> upgraded this-is-some-token exp-ssh-v2-0003\n
1150 o> readline() -> 4: 1150 o> readline() -> 4:
1151 o> 426\n 1151 o> 426\n
1152 o> readline() -> 427: 1152 o> readline() -> 427:
1153 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n 1153 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
1154 i> write(45) -> 45: 1154 i> write(45) -> 45:
1234 1234
1235 Upgrade request must be followed by hello + between 1235 Upgrade request must be followed by hello + between
1236 1236
1237 $ hg debugwireproto --localssh --peer raw << EOF 1237 $ hg debugwireproto --localssh --peer raw << EOF
1238 > raw 1238 > raw
1239 > upgrade token proto=exp-ssh-v2-0002\n 1239 > upgrade token proto=exp-ssh-v2-0003\n
1240 > invalid\n 1240 > invalid\n
1241 > readline 1241 > readline
1242 > readavailable 1242 > readavailable
1243 > EOF 1243 > EOF
1244 using raw connection to peer 1244 using raw connection to peer
1245 i> write(44) -> 44: 1245 i> write(44) -> 44:
1246 i> upgrade token proto=exp-ssh-v2-0002\n 1246 i> upgrade token proto=exp-ssh-v2-0003\n
1247 i> invalid\n 1247 i> invalid\n
1248 o> readline() -> 1: 1248 o> readline() -> 1:
1249 o> \n 1249 o> \n
1250 e> read(-1) -> 46: 1250 e> read(-1) -> 46:
1251 e> malformed handshake protocol: missing hello\n 1251 e> malformed handshake protocol: missing hello\n
1252 e> -\n 1252 e> -\n
1253 1253
1254 $ hg debugwireproto --localssh --peer raw << EOF 1254 $ hg debugwireproto --localssh --peer raw << EOF
1255 > raw 1255 > raw
1256 > upgrade token proto=exp-ssh-v2-0002\n 1256 > upgrade token proto=exp-ssh-v2-0003\n
1257 > hello\n 1257 > hello\n
1258 > invalid\n 1258 > invalid\n
1259 > readline 1259 > readline
1260 > readavailable 1260 > readavailable
1261 > EOF 1261 > EOF
1262 using raw connection to peer 1262 using raw connection to peer
1263 i> write(50) -> 50: 1263 i> write(50) -> 50:
1264 i> upgrade token proto=exp-ssh-v2-0002\n 1264 i> upgrade token proto=exp-ssh-v2-0003\n
1265 i> hello\n 1265 i> hello\n
1266 i> invalid\n 1266 i> invalid\n
1267 o> readline() -> 1: 1267 o> readline() -> 1:
1268 o> \n 1268 o> \n
1269 e> read(-1) -> 48: 1269 e> read(-1) -> 48:
1270 e> malformed handshake protocol: missing between\n 1270 e> malformed handshake protocol: missing between\n
1271 e> -\n 1271 e> -\n
1272 1272
1273 $ hg debugwireproto --localssh --peer raw << EOF 1273 $ hg debugwireproto --localssh --peer raw << EOF
1274 > raw 1274 > raw
1275 > upgrade token proto=exp-ssh-v2-0002\n 1275 > upgrade token proto=exp-ssh-v2-0003\n
1276 > hello\n 1276 > hello\n
1277 > between\n 1277 > between\n
1278 > invalid\n 1278 > invalid\n
1279 > readline 1279 > readline
1280 > readavailable 1280 > readavailable
1281 > EOF 1281 > EOF
1282 using raw connection to peer 1282 using raw connection to peer
1283 i> write(58) -> 58: 1283 i> write(58) -> 58:
1284 i> upgrade token proto=exp-ssh-v2-0002\n 1284 i> upgrade token proto=exp-ssh-v2-0003\n
1285 i> hello\n 1285 i> hello\n
1286 i> between\n 1286 i> between\n
1287 i> invalid\n 1287 i> invalid\n
1288 o> readline() -> 1: 1288 o> readline() -> 1:
1289 o> \n 1289 o> \n
1366 } 1366 }
1367 1367
1368 testing ssh2 1368 testing ssh2
1369 creating ssh peer from handshake results 1369 creating ssh peer from handshake results
1370 i> write(171) -> 171: 1370 i> write(171) -> 171:
1371 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1371 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1372 i> hello\n 1372 i> hello\n
1373 i> between\n 1373 i> between\n
1374 i> pairs 81\n 1374 i> pairs 81\n
1375 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1375 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1376 i> flush() -> None 1376 i> flush() -> None
1377 o> readline() -> 62: 1377 o> readline() -> 62:
1378 o> upgraded * exp-ssh-v2-0002\n (glob) 1378 o> upgraded * exp-ssh-v2-0003\n (glob)
1379 o> readline() -> 4: 1379 o> readline() -> 4:
1380 o> 426\n 1380 o> 426\n
1381 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1381 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1382 o> read(1) -> 1: 1382 o> read(1) -> 1:
1383 o> \n 1383 o> \n
1446 response: {} 1446 response: {}
1447 1447
1448 testing ssh2 1448 testing ssh2
1449 creating ssh peer from handshake results 1449 creating ssh peer from handshake results
1450 i> write(171) -> 171: 1450 i> write(171) -> 171:
1451 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1451 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1452 i> hello\n 1452 i> hello\n
1453 i> between\n 1453 i> between\n
1454 i> pairs 81\n 1454 i> pairs 81\n
1455 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1455 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1456 i> flush() -> None 1456 i> flush() -> None
1457 o> readline() -> 62: 1457 o> readline() -> 62:
1458 o> upgraded * exp-ssh-v2-0002\n (glob) 1458 o> upgraded * exp-ssh-v2-0003\n (glob)
1459 o> readline() -> 4: 1459 o> readline() -> 4:
1460 o> 426\n 1460 o> 426\n
1461 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1461 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1462 o> read(1) -> 1: 1462 o> read(1) -> 1:
1463 o> \n 1463 o> \n
1510 } 1510 }
1511 1511
1512 testing ssh2 1512 testing ssh2
1513 creating ssh peer from handshake results 1513 creating ssh peer from handshake results
1514 i> write(171) -> 171: 1514 i> write(171) -> 171:
1515 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1515 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1516 i> hello\n 1516 i> hello\n
1517 i> between\n 1517 i> between\n
1518 i> pairs 81\n 1518 i> pairs 81\n
1519 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1519 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1520 i> flush() -> None 1520 i> flush() -> None
1521 o> readline() -> 62: 1521 o> readline() -> 62:
1522 o> upgraded * exp-ssh-v2-0002\n (glob) 1522 o> upgraded * exp-ssh-v2-0003\n (glob)
1523 o> readline() -> 4: 1523 o> readline() -> 4:
1524 o> 426\n 1524 o> 426\n
1525 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1525 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1526 o> read(1) -> 1: 1526 o> read(1) -> 1:
1527 o> \n 1527 o> \n
1580 } 1580 }
1581 1581
1582 testing ssh2 1582 testing ssh2
1583 creating ssh peer from handshake results 1583 creating ssh peer from handshake results
1584 i> write(171) -> 171: 1584 i> write(171) -> 171:
1585 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1585 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1586 i> hello\n 1586 i> hello\n
1587 i> between\n 1587 i> between\n
1588 i> pairs 81\n 1588 i> pairs 81\n
1589 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1589 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1590 i> flush() -> None 1590 i> flush() -> None
1591 o> readline() -> 62: 1591 o> readline() -> 62:
1592 o> upgraded * exp-ssh-v2-0002\n (glob) 1592 o> upgraded * exp-ssh-v2-0003\n (glob)
1593 o> readline() -> 4: 1593 o> readline() -> 4:
1594 o> 426\n 1594 o> 426\n
1595 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1595 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1596 o> read(1) -> 1: 1596 o> read(1) -> 1:
1597 o> \n 1597 o> \n
1659 response: True 1659 response: True
1660 1660
1661 testing ssh2 1661 testing ssh2
1662 creating ssh peer from handshake results 1662 creating ssh peer from handshake results
1663 i> write(171) -> 171: 1663 i> write(171) -> 171:
1664 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1664 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1665 i> hello\n 1665 i> hello\n
1666 i> between\n 1666 i> between\n
1667 i> pairs 81\n 1667 i> pairs 81\n
1668 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1668 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1669 i> flush() -> None 1669 i> flush() -> None
1670 o> readline() -> 62: 1670 o> readline() -> 62:
1671 o> upgraded * exp-ssh-v2-0002\n (glob) 1671 o> upgraded * exp-ssh-v2-0003\n (glob)
1672 o> readline() -> 4: 1672 o> readline() -> 4:
1673 o> 426\n 1673 o> 426\n
1674 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1674 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1675 o> read(1) -> 1: 1675 o> read(1) -> 1:
1676 o> \n 1676 o> \n
1744 } 1744 }
1745 1745
1746 testing ssh2 1746 testing ssh2
1747 creating ssh peer from handshake results 1747 creating ssh peer from handshake results
1748 i> write(171) -> 171: 1748 i> write(171) -> 171:
1749 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1749 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1750 i> hello\n 1750 i> hello\n
1751 i> between\n 1751 i> between\n
1752 i> pairs 81\n 1752 i> pairs 81\n
1753 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1753 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1754 i> flush() -> None 1754 i> flush() -> None
1755 o> readline() -> 62: 1755 o> readline() -> 62:
1756 o> upgraded * exp-ssh-v2-0002\n (glob) 1756 o> upgraded * exp-ssh-v2-0003\n (glob)
1757 o> readline() -> 4: 1757 o> readline() -> 4:
1758 o> 426\n 1758 o> 426\n
1759 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1759 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1760 o> read(1) -> 1: 1760 o> read(1) -> 1:
1761 o> \n 1761 o> \n
1832 } 1832 }
1833 1833
1834 testing ssh2 1834 testing ssh2
1835 creating ssh peer from handshake results 1835 creating ssh peer from handshake results
1836 i> write(171) -> 171: 1836 i> write(171) -> 171:
1837 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1837 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1838 i> hello\n 1838 i> hello\n
1839 i> between\n 1839 i> between\n
1840 i> pairs 81\n 1840 i> pairs 81\n
1841 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1841 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1842 i> flush() -> None 1842 i> flush() -> None
1843 o> readline() -> 62: 1843 o> readline() -> 62:
1844 o> upgraded * exp-ssh-v2-0002\n (glob) 1844 o> upgraded * exp-ssh-v2-0003\n (glob)
1845 o> readline() -> 4: 1845 o> readline() -> 4:
1846 o> 426\n 1846 o> 426\n
1847 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1847 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1848 o> read(1) -> 1: 1848 o> read(1) -> 1:
1849 o> \n 1849 o> \n
1907 } 1907 }
1908 1908
1909 testing ssh2 1909 testing ssh2
1910 creating ssh peer from handshake results 1910 creating ssh peer from handshake results
1911 i> write(171) -> 171: 1911 i> write(171) -> 171:
1912 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1912 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1913 i> hello\n 1913 i> hello\n
1914 i> between\n 1914 i> between\n
1915 i> pairs 81\n 1915 i> pairs 81\n
1916 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1916 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1917 i> flush() -> None 1917 i> flush() -> None
1918 o> readline() -> 62: 1918 o> readline() -> 62:
1919 o> upgraded * exp-ssh-v2-0002\n (glob) 1919 o> upgraded * exp-ssh-v2-0003\n (glob)
1920 o> readline() -> 4: 1920 o> readline() -> 4:
1921 o> 426\n 1921 o> 426\n
1922 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1922 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1923 o> read(1) -> 1: 1923 o> read(1) -> 1:
1924 o> \n 1924 o> \n
1977 } 1977 }
1978 1978
1979 testing ssh2 1979 testing ssh2
1980 creating ssh peer from handshake results 1980 creating ssh peer from handshake results
1981 i> write(171) -> 171: 1981 i> write(171) -> 171:
1982 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 1982 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
1983 i> hello\n 1983 i> hello\n
1984 i> between\n 1984 i> between\n
1985 i> pairs 81\n 1985 i> pairs 81\n
1986 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 1986 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1987 i> flush() -> None 1987 i> flush() -> None
1988 o> readline() -> 62: 1988 o> readline() -> 62:
1989 o> upgraded * exp-ssh-v2-0002\n (glob) 1989 o> upgraded * exp-ssh-v2-0003\n (glob)
1990 o> readline() -> 4: 1990 o> readline() -> 4:
1991 o> 426\n 1991 o> 426\n
1992 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 1992 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1993 o> read(1) -> 1: 1993 o> read(1) -> 1:
1994 o> \n 1994 o> \n
2056 response: True 2056 response: True
2057 2057
2058 testing ssh2 2058 testing ssh2
2059 creating ssh peer from handshake results 2059 creating ssh peer from handshake results
2060 i> write(171) -> 171: 2060 i> write(171) -> 171:
2061 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 2061 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
2062 i> hello\n 2062 i> hello\n
2063 i> between\n 2063 i> between\n
2064 i> pairs 81\n 2064 i> pairs 81\n
2065 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 2065 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
2066 i> flush() -> None 2066 i> flush() -> None
2067 o> readline() -> 62: 2067 o> readline() -> 62:
2068 o> upgraded * exp-ssh-v2-0002\n (glob) 2068 o> upgraded * exp-ssh-v2-0003\n (glob)
2069 o> readline() -> 4: 2069 o> readline() -> 4:
2070 o> 426\n 2070 o> 426\n
2071 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 2071 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
2072 o> read(1) -> 1: 2072 o> read(1) -> 1:
2073 o> \n 2073 o> \n
2162 response #2: 4ee3fcef1c800fa2bf23e20af7c83ff111d9c7ab\t1\nbfebe6bd38eebc6f8202e419c1171268987ea6a6\t1\npublishing\tTrue 2162 response #2: 4ee3fcef1c800fa2bf23e20af7c83ff111d9c7ab\t1\nbfebe6bd38eebc6f8202e419c1171268987ea6a6\t1\npublishing\tTrue
2163 2163
2164 testing ssh2 2164 testing ssh2
2165 creating ssh peer from handshake results 2165 creating ssh peer from handshake results
2166 i> write(171) -> 171: 2166 i> write(171) -> 171:
2167 i> upgrade * proto=exp-ssh-v2-0002\n (glob) 2167 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
2168 i> hello\n 2168 i> hello\n
2169 i> between\n 2169 i> between\n
2170 i> pairs 81\n 2170 i> pairs 81\n
2171 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 2171 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
2172 i> flush() -> None 2172 i> flush() -> None
2173 o> readline() -> 62: 2173 o> readline() -> 62:
2174 o> upgraded * exp-ssh-v2-0002\n (glob) 2174 o> upgraded * exp-ssh-v2-0003\n (glob)
2175 o> readline() -> 4: 2175 o> readline() -> 4:
2176 o> 426\n 2176 o> 426\n
2177 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 2177 o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
2178 o> read(1) -> 1: 2178 o> read(1) -> 1:
2179 o> \n 2179 o> \n