##// END OF EJS Templates
revbranchcache: advertise and use 'rbc' exchange capability...
Boris Feld -
r36986:2090044a default
parent child Browse files
Show More
@@ -1492,6 +1492,7 b" capabilities = {'HG20': (),"
1492 1492 'digests': tuple(sorted(util.DIGESTS.keys())),
1493 1493 'remote-changegroup': ('http', 'https'),
1494 1494 'hgtagsfnodes': (),
1495 'rev-branch-cache': (),
1495 1496 'phases': ('heads',),
1496 1497 'stream': ('v2',),
1497 1498 }
@@ -22,6 +22,7 b' substitutions = ['
22 22 br'phases%253Dheads%250A'
23 23 br'pushkey%250A'
24 24 br'remote-changegroup%253Dhttp%252Chttps%250A'
25 br'rev-branch-cache%250A'
25 26 br'stream%253Dv2',
26 27 # (the replacement patterns)
27 28 br'$USUAL_BUNDLE_CAPS$'
@@ -50,6 +51,7 b' substitutions = ['
50 51 br'phases%3Dheads%0A'
51 52 br'pushkey%0A'
52 53 br'remote-changegroup%3Dhttp%2Chttps%0A'
54 br'rev-branch-cache%0A'
53 55 br'stream%3Dv2',
54 56 # (replacement patterns)
55 57 br'$USUAL_BUNDLE2_CAPS$'
@@ -64,7 +66,8 b' substitutions = ['
64 66 br'listkeys%0A'
65 67 br'phases%3Dheads%0A'
66 68 br'pushkey%0A'
67 br'remote-changegroup%3Dhttp%2Chttps',
69 br'remote-changegroup%3Dhttp%2Chttps%0A'
70 br'rev-branch-cache',
68 71 # (replacement patterns)
69 72 br'$USUAL_BUNDLE2_CAPS_SERVER$'
70 73 ),
@@ -107,14 +107,14 b' Extension disabled for lack of a hook'
107 107 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
108 108 911600dab2ae7a9baff75958b84fe606851ce955
109 109 bundle2-output-bundle: "HG20", 5 parts total
110 bundle2-output-part: "replycaps" 188 bytes payload
110 bundle2-output-part: "replycaps" 205 bytes payload
111 111 bundle2-output-part: "check:phases" 24 bytes payload
112 112 bundle2-output-part: "check:heads" streamed payload
113 113 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
114 114 bundle2-output-part: "phase-heads" 24 bytes payload
115 115 bundle2-input-bundle: with-transaction
116 116 bundle2-input-part: "replycaps" supported
117 bundle2-input-part: total payload size 188
117 bundle2-input-part: total payload size 205
118 118 bundle2-input-part: "check:phases" supported
119 119 bundle2-input-part: total payload size 24
120 120 bundle2-input-part: "check:heads" supported
@@ -170,14 +170,14 b' Extension disabled for lack of acl.sourc'
170 170 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
171 171 911600dab2ae7a9baff75958b84fe606851ce955
172 172 bundle2-output-bundle: "HG20", 5 parts total
173 bundle2-output-part: "replycaps" 188 bytes payload
173 bundle2-output-part: "replycaps" 205 bytes payload
174 174 bundle2-output-part: "check:phases" 24 bytes payload
175 175 bundle2-output-part: "check:heads" streamed payload
176 176 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
177 177 bundle2-output-part: "phase-heads" 24 bytes payload
178 178 bundle2-input-bundle: with-transaction
179 179 bundle2-input-part: "replycaps" supported
180 bundle2-input-part: total payload size 188
180 bundle2-input-part: total payload size 205
181 181 bundle2-input-part: "check:phases" supported
182 182 bundle2-input-part: total payload size 24
183 183 bundle2-input-part: "check:heads" supported
@@ -236,14 +236,14 b' No [acl.allow]/[acl.deny]'
236 236 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
237 237 911600dab2ae7a9baff75958b84fe606851ce955
238 238 bundle2-output-bundle: "HG20", 5 parts total
239 bundle2-output-part: "replycaps" 188 bytes payload
239 bundle2-output-part: "replycaps" 205 bytes payload
240 240 bundle2-output-part: "check:phases" 24 bytes payload
241 241 bundle2-output-part: "check:heads" streamed payload
242 242 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
243 243 bundle2-output-part: "phase-heads" 24 bytes payload
244 244 bundle2-input-bundle: with-transaction
245 245 bundle2-input-part: "replycaps" supported
246 bundle2-input-part: total payload size 188
246 bundle2-input-part: total payload size 205
247 247 bundle2-input-part: "check:phases" supported
248 248 bundle2-input-part: total payload size 24
249 249 bundle2-input-part: "check:heads" supported
@@ -312,14 +312,14 b' Empty [acl.allow]'
312 312 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
313 313 911600dab2ae7a9baff75958b84fe606851ce955
314 314 bundle2-output-bundle: "HG20", 5 parts total
315 bundle2-output-part: "replycaps" 188 bytes payload
315 bundle2-output-part: "replycaps" 205 bytes payload
316 316 bundle2-output-part: "check:phases" 24 bytes payload
317 317 bundle2-output-part: "check:heads" streamed payload
318 318 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
319 319 bundle2-output-part: "phase-heads" 24 bytes payload
320 320 bundle2-input-bundle: with-transaction
321 321 bundle2-input-part: "replycaps" supported
322 bundle2-input-part: total payload size 188
322 bundle2-input-part: total payload size 205
323 323 bundle2-input-part: "check:phases" supported
324 324 bundle2-input-part: total payload size 24
325 325 bundle2-input-part: "check:heads" supported
@@ -380,14 +380,14 b' fred is allowed inside foo/'
380 380 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
381 381 911600dab2ae7a9baff75958b84fe606851ce955
382 382 bundle2-output-bundle: "HG20", 5 parts total
383 bundle2-output-part: "replycaps" 188 bytes payload
383 bundle2-output-part: "replycaps" 205 bytes payload
384 384 bundle2-output-part: "check:phases" 24 bytes payload
385 385 bundle2-output-part: "check:heads" streamed payload
386 386 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
387 387 bundle2-output-part: "phase-heads" 24 bytes payload
388 388 bundle2-input-bundle: with-transaction
389 389 bundle2-input-part: "replycaps" supported
390 bundle2-input-part: total payload size 188
390 bundle2-input-part: total payload size 205
391 391 bundle2-input-part: "check:phases" supported
392 392 bundle2-input-part: total payload size 24
393 393 bundle2-input-part: "check:heads" supported
@@ -453,14 +453,14 b' Empty [acl.deny]'
453 453 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
454 454 911600dab2ae7a9baff75958b84fe606851ce955
455 455 bundle2-output-bundle: "HG20", 5 parts total
456 bundle2-output-part: "replycaps" 188 bytes payload
456 bundle2-output-part: "replycaps" 205 bytes payload
457 457 bundle2-output-part: "check:phases" 24 bytes payload
458 458 bundle2-output-part: "check:heads" streamed payload
459 459 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
460 460 bundle2-output-part: "phase-heads" 24 bytes payload
461 461 bundle2-input-bundle: with-transaction
462 462 bundle2-input-part: "replycaps" supported
463 bundle2-input-part: total payload size 188
463 bundle2-input-part: total payload size 205
464 464 bundle2-input-part: "check:phases" supported
465 465 bundle2-input-part: total payload size 24
466 466 bundle2-input-part: "check:heads" supported
@@ -523,14 +523,14 b' fred is allowed inside foo/, but not foo'
523 523 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
524 524 911600dab2ae7a9baff75958b84fe606851ce955
525 525 bundle2-output-bundle: "HG20", 5 parts total
526 bundle2-output-part: "replycaps" 188 bytes payload
526 bundle2-output-part: "replycaps" 205 bytes payload
527 527 bundle2-output-part: "check:phases" 24 bytes payload
528 528 bundle2-output-part: "check:heads" streamed payload
529 529 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
530 530 bundle2-output-part: "phase-heads" 24 bytes payload
531 531 bundle2-input-bundle: with-transaction
532 532 bundle2-input-part: "replycaps" supported
533 bundle2-input-part: total payload size 188
533 bundle2-input-part: total payload size 205
534 534 bundle2-input-part: "check:phases" supported
535 535 bundle2-input-part: total payload size 24
536 536 bundle2-input-part: "check:heads" supported
@@ -598,14 +598,14 b' fred is allowed inside foo/, but not foo'
598 598 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
599 599 911600dab2ae7a9baff75958b84fe606851ce955
600 600 bundle2-output-bundle: "HG20", 5 parts total
601 bundle2-output-part: "replycaps" 188 bytes payload
601 bundle2-output-part: "replycaps" 205 bytes payload
602 602 bundle2-output-part: "check:phases" 24 bytes payload
603 603 bundle2-output-part: "check:heads" streamed payload
604 604 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
605 605 bundle2-output-part: "phase-heads" 24 bytes payload
606 606 bundle2-input-bundle: with-transaction
607 607 bundle2-input-part: "replycaps" supported
608 bundle2-input-part: total payload size 188
608 bundle2-input-part: total payload size 205
609 609 bundle2-input-part: "check:phases" supported
610 610 bundle2-input-part: total payload size 24
611 611 bundle2-input-part: "check:heads" supported
@@ -670,14 +670,14 b' fred is allowed inside foo/, but not foo'
670 670 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
671 671 911600dab2ae7a9baff75958b84fe606851ce955
672 672 bundle2-output-bundle: "HG20", 5 parts total
673 bundle2-output-part: "replycaps" 188 bytes payload
673 bundle2-output-part: "replycaps" 205 bytes payload
674 674 bundle2-output-part: "check:phases" 24 bytes payload
675 675 bundle2-output-part: "check:heads" streamed payload
676 676 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
677 677 bundle2-output-part: "phase-heads" 24 bytes payload
678 678 bundle2-input-bundle: with-transaction
679 679 bundle2-input-part: "replycaps" supported
680 bundle2-input-part: total payload size 188
680 bundle2-input-part: total payload size 205
681 681 bundle2-input-part: "check:phases" supported
682 682 bundle2-input-part: total payload size 24
683 683 bundle2-input-part: "check:heads" supported
@@ -744,14 +744,14 b' barney is allowed everywhere'
744 744 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
745 745 911600dab2ae7a9baff75958b84fe606851ce955
746 746 bundle2-output-bundle: "HG20", 5 parts total
747 bundle2-output-part: "replycaps" 188 bytes payload
747 bundle2-output-part: "replycaps" 205 bytes payload
748 748 bundle2-output-part: "check:phases" 24 bytes payload
749 749 bundle2-output-part: "check:heads" streamed payload
750 750 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
751 751 bundle2-output-part: "phase-heads" 24 bytes payload
752 752 bundle2-input-bundle: with-transaction
753 753 bundle2-input-part: "replycaps" supported
754 bundle2-input-part: total payload size 188
754 bundle2-input-part: total payload size 205
755 755 bundle2-input-part: "check:phases" supported
756 756 bundle2-input-part: total payload size 24
757 757 bundle2-input-part: "check:heads" supported
@@ -827,14 +827,14 b' wilma can change files with a .txt exten'
827 827 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
828 828 911600dab2ae7a9baff75958b84fe606851ce955
829 829 bundle2-output-bundle: "HG20", 5 parts total
830 bundle2-output-part: "replycaps" 188 bytes payload
830 bundle2-output-part: "replycaps" 205 bytes payload
831 831 bundle2-output-part: "check:phases" 24 bytes payload
832 832 bundle2-output-part: "check:heads" streamed payload
833 833 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
834 834 bundle2-output-part: "phase-heads" 24 bytes payload
835 835 bundle2-input-bundle: with-transaction
836 836 bundle2-input-part: "replycaps" supported
837 bundle2-input-part: total payload size 188
837 bundle2-input-part: total payload size 205
838 838 bundle2-input-part: "check:phases" supported
839 839 bundle2-input-part: total payload size 24
840 840 bundle2-input-part: "check:heads" supported
@@ -908,14 +908,14 b' file specified by acl.config does not ex'
908 908 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
909 909 911600dab2ae7a9baff75958b84fe606851ce955
910 910 bundle2-output-bundle: "HG20", 5 parts total
911 bundle2-output-part: "replycaps" 188 bytes payload
911 bundle2-output-part: "replycaps" 205 bytes payload
912 912 bundle2-output-part: "check:phases" 24 bytes payload
913 913 bundle2-output-part: "check:heads" streamed payload
914 914 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
915 915 bundle2-output-part: "phase-heads" 24 bytes payload
916 916 bundle2-input-bundle: with-transaction
917 917 bundle2-input-part: "replycaps" supported
918 bundle2-input-part: total payload size 188
918 bundle2-input-part: total payload size 205
919 919 bundle2-input-part: "check:phases" supported
920 920 bundle2-input-part: total payload size 24
921 921 bundle2-input-part: "check:heads" supported
@@ -984,14 +984,14 b' betty is allowed inside foo/ by a acl.co'
984 984 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
985 985 911600dab2ae7a9baff75958b84fe606851ce955
986 986 bundle2-output-bundle: "HG20", 5 parts total
987 bundle2-output-part: "replycaps" 188 bytes payload
987 bundle2-output-part: "replycaps" 205 bytes payload
988 988 bundle2-output-part: "check:phases" 24 bytes payload
989 989 bundle2-output-part: "check:heads" streamed payload
990 990 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
991 991 bundle2-output-part: "phase-heads" 24 bytes payload
992 992 bundle2-input-bundle: with-transaction
993 993 bundle2-input-part: "replycaps" supported
994 bundle2-input-part: total payload size 188
994 bundle2-input-part: total payload size 205
995 995 bundle2-input-part: "check:phases" supported
996 996 bundle2-input-part: total payload size 24
997 997 bundle2-input-part: "check:heads" supported
@@ -1071,14 +1071,14 b' acl.config can set only [acl.allow]/[acl'
1071 1071 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1072 1072 911600dab2ae7a9baff75958b84fe606851ce955
1073 1073 bundle2-output-bundle: "HG20", 5 parts total
1074 bundle2-output-part: "replycaps" 188 bytes payload
1074 bundle2-output-part: "replycaps" 205 bytes payload
1075 1075 bundle2-output-part: "check:phases" 24 bytes payload
1076 1076 bundle2-output-part: "check:heads" streamed payload
1077 1077 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1078 1078 bundle2-output-part: "phase-heads" 24 bytes payload
1079 1079 bundle2-input-bundle: with-transaction
1080 1080 bundle2-input-part: "replycaps" supported
1081 bundle2-input-part: total payload size 188
1081 bundle2-input-part: total payload size 205
1082 1082 bundle2-input-part: "check:phases" supported
1083 1083 bundle2-input-part: total payload size 24
1084 1084 bundle2-input-part: "check:heads" supported
@@ -1158,14 +1158,14 b' fred is always allowed'
1158 1158 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1159 1159 911600dab2ae7a9baff75958b84fe606851ce955
1160 1160 bundle2-output-bundle: "HG20", 5 parts total
1161 bundle2-output-part: "replycaps" 188 bytes payload
1161 bundle2-output-part: "replycaps" 205 bytes payload
1162 1162 bundle2-output-part: "check:phases" 24 bytes payload
1163 1163 bundle2-output-part: "check:heads" streamed payload
1164 1164 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1165 1165 bundle2-output-part: "phase-heads" 24 bytes payload
1166 1166 bundle2-input-bundle: with-transaction
1167 1167 bundle2-input-part: "replycaps" supported
1168 bundle2-input-part: total payload size 188
1168 bundle2-input-part: total payload size 205
1169 1169 bundle2-input-part: "check:phases" supported
1170 1170 bundle2-input-part: total payload size 24
1171 1171 bundle2-input-part: "check:heads" supported
@@ -1241,14 +1241,14 b' no one is allowed inside foo/Bar/'
1241 1241 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1242 1242 911600dab2ae7a9baff75958b84fe606851ce955
1243 1243 bundle2-output-bundle: "HG20", 5 parts total
1244 bundle2-output-part: "replycaps" 188 bytes payload
1244 bundle2-output-part: "replycaps" 205 bytes payload
1245 1245 bundle2-output-part: "check:phases" 24 bytes payload
1246 1246 bundle2-output-part: "check:heads" streamed payload
1247 1247 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1248 1248 bundle2-output-part: "phase-heads" 24 bytes payload
1249 1249 bundle2-input-bundle: with-transaction
1250 1250 bundle2-input-part: "replycaps" supported
1251 bundle2-input-part: total payload size 188
1251 bundle2-input-part: total payload size 205
1252 1252 bundle2-input-part: "check:phases" supported
1253 1253 bundle2-input-part: total payload size 24
1254 1254 bundle2-input-part: "check:heads" supported
@@ -1321,14 +1321,14 b' OS-level groups'
1321 1321 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1322 1322 911600dab2ae7a9baff75958b84fe606851ce955
1323 1323 bundle2-output-bundle: "HG20", 5 parts total
1324 bundle2-output-part: "replycaps" 188 bytes payload
1324 bundle2-output-part: "replycaps" 205 bytes payload
1325 1325 bundle2-output-part: "check:phases" 24 bytes payload
1326 1326 bundle2-output-part: "check:heads" streamed payload
1327 1327 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1328 1328 bundle2-output-part: "phase-heads" 24 bytes payload
1329 1329 bundle2-input-bundle: with-transaction
1330 1330 bundle2-input-part: "replycaps" supported
1331 bundle2-input-part: total payload size 188
1331 bundle2-input-part: total payload size 205
1332 1332 bundle2-input-part: "check:phases" supported
1333 1333 bundle2-input-part: total payload size 24
1334 1334 bundle2-input-part: "check:heads" supported
@@ -1405,14 +1405,14 b' OS-level groups'
1405 1405 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1406 1406 911600dab2ae7a9baff75958b84fe606851ce955
1407 1407 bundle2-output-bundle: "HG20", 5 parts total
1408 bundle2-output-part: "replycaps" 188 bytes payload
1408 bundle2-output-part: "replycaps" 205 bytes payload
1409 1409 bundle2-output-part: "check:phases" 24 bytes payload
1410 1410 bundle2-output-part: "check:heads" streamed payload
1411 1411 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1412 1412 bundle2-output-part: "phase-heads" 24 bytes payload
1413 1413 bundle2-input-bundle: with-transaction
1414 1414 bundle2-input-part: "replycaps" supported
1415 bundle2-input-part: total payload size 188
1415 bundle2-input-part: total payload size 205
1416 1416 bundle2-input-part: "check:phases" supported
1417 1417 bundle2-input-part: total payload size 24
1418 1418 bundle2-input-part: "check:heads" supported
@@ -1526,14 +1526,14 b' No branch acls specified'
1526 1526 911600dab2ae7a9baff75958b84fe606851ce955
1527 1527 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1528 1528 bundle2-output-bundle: "HG20", 5 parts total
1529 bundle2-output-part: "replycaps" 188 bytes payload
1529 bundle2-output-part: "replycaps" 205 bytes payload
1530 1530 bundle2-output-part: "check:phases" 48 bytes payload
1531 1531 bundle2-output-part: "check:heads" streamed payload
1532 1532 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1533 1533 bundle2-output-part: "phase-heads" 48 bytes payload
1534 1534 bundle2-input-bundle: with-transaction
1535 1535 bundle2-input-part: "replycaps" supported
1536 bundle2-input-part: total payload size 188
1536 bundle2-input-part: total payload size 205
1537 1537 bundle2-input-part: "check:phases" supported
1538 1538 bundle2-input-part: total payload size 48
1539 1539 bundle2-input-part: "check:heads" supported
@@ -1611,14 +1611,14 b' Branch acl deny test'
1611 1611 911600dab2ae7a9baff75958b84fe606851ce955
1612 1612 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1613 1613 bundle2-output-bundle: "HG20", 5 parts total
1614 bundle2-output-part: "replycaps" 188 bytes payload
1614 bundle2-output-part: "replycaps" 205 bytes payload
1615 1615 bundle2-output-part: "check:phases" 48 bytes payload
1616 1616 bundle2-output-part: "check:heads" streamed payload
1617 1617 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1618 1618 bundle2-output-part: "phase-heads" 48 bytes payload
1619 1619 bundle2-input-bundle: with-transaction
1620 1620 bundle2-input-part: "replycaps" supported
1621 bundle2-input-part: total payload size 188
1621 bundle2-input-part: total payload size 205
1622 1622 bundle2-input-part: "check:phases" supported
1623 1623 bundle2-input-part: total payload size 48
1624 1624 bundle2-input-part: "check:heads" supported
@@ -1689,14 +1689,14 b' Branch acl empty allow test'
1689 1689 911600dab2ae7a9baff75958b84fe606851ce955
1690 1690 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1691 1691 bundle2-output-bundle: "HG20", 5 parts total
1692 bundle2-output-part: "replycaps" 188 bytes payload
1692 bundle2-output-part: "replycaps" 205 bytes payload
1693 1693 bundle2-output-part: "check:phases" 48 bytes payload
1694 1694 bundle2-output-part: "check:heads" streamed payload
1695 1695 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1696 1696 bundle2-output-part: "phase-heads" 48 bytes payload
1697 1697 bundle2-input-bundle: with-transaction
1698 1698 bundle2-input-part: "replycaps" supported
1699 bundle2-input-part: total payload size 188
1699 bundle2-input-part: total payload size 205
1700 1700 bundle2-input-part: "check:phases" supported
1701 1701 bundle2-input-part: total payload size 48
1702 1702 bundle2-input-part: "check:heads" supported
@@ -1763,14 +1763,14 b' Branch acl allow other'
1763 1763 911600dab2ae7a9baff75958b84fe606851ce955
1764 1764 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1765 1765 bundle2-output-bundle: "HG20", 5 parts total
1766 bundle2-output-part: "replycaps" 188 bytes payload
1766 bundle2-output-part: "replycaps" 205 bytes payload
1767 1767 bundle2-output-part: "check:phases" 48 bytes payload
1768 1768 bundle2-output-part: "check:heads" streamed payload
1769 1769 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1770 1770 bundle2-output-part: "phase-heads" 48 bytes payload
1771 1771 bundle2-input-bundle: with-transaction
1772 1772 bundle2-input-part: "replycaps" supported
1773 bundle2-input-part: total payload size 188
1773 bundle2-input-part: total payload size 205
1774 1774 bundle2-input-part: "check:phases" supported
1775 1775 bundle2-input-part: total payload size 48
1776 1776 bundle2-input-part: "check:heads" supported
@@ -1831,14 +1831,14 b' Branch acl allow other'
1831 1831 911600dab2ae7a9baff75958b84fe606851ce955
1832 1832 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1833 1833 bundle2-output-bundle: "HG20", 5 parts total
1834 bundle2-output-part: "replycaps" 188 bytes payload
1834 bundle2-output-part: "replycaps" 205 bytes payload
1835 1835 bundle2-output-part: "check:phases" 48 bytes payload
1836 1836 bundle2-output-part: "check:heads" streamed payload
1837 1837 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1838 1838 bundle2-output-part: "phase-heads" 48 bytes payload
1839 1839 bundle2-input-bundle: with-transaction
1840 1840 bundle2-input-part: "replycaps" supported
1841 bundle2-input-part: total payload size 188
1841 bundle2-input-part: total payload size 205
1842 1842 bundle2-input-part: "check:phases" supported
1843 1843 bundle2-input-part: total payload size 48
1844 1844 bundle2-input-part: "check:heads" supported
@@ -1921,14 +1921,14 b' push foobar into the remote'
1921 1921 911600dab2ae7a9baff75958b84fe606851ce955
1922 1922 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1923 1923 bundle2-output-bundle: "HG20", 5 parts total
1924 bundle2-output-part: "replycaps" 188 bytes payload
1924 bundle2-output-part: "replycaps" 205 bytes payload
1925 1925 bundle2-output-part: "check:phases" 48 bytes payload
1926 1926 bundle2-output-part: "check:heads" streamed payload
1927 1927 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1928 1928 bundle2-output-part: "phase-heads" 48 bytes payload
1929 1929 bundle2-input-bundle: with-transaction
1930 1930 bundle2-input-part: "replycaps" supported
1931 bundle2-input-part: total payload size 188
1931 bundle2-input-part: total payload size 205
1932 1932 bundle2-input-part: "check:phases" supported
1933 1933 bundle2-input-part: total payload size 48
1934 1934 bundle2-input-part: "check:heads" supported
@@ -2010,14 +2010,14 b' Branch acl conflicting deny'
2010 2010 911600dab2ae7a9baff75958b84fe606851ce955
2011 2011 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
2012 2012 bundle2-output-bundle: "HG20", 5 parts total
2013 bundle2-output-part: "replycaps" 188 bytes payload
2013 bundle2-output-part: "replycaps" 205 bytes payload
2014 2014 bundle2-output-part: "check:phases" 48 bytes payload
2015 2015 bundle2-output-part: "check:heads" streamed payload
2016 2016 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2017 2017 bundle2-output-part: "phase-heads" 48 bytes payload
2018 2018 bundle2-input-bundle: with-transaction
2019 2019 bundle2-input-part: "replycaps" supported
2020 bundle2-input-part: total payload size 188
2020 bundle2-input-part: total payload size 205
2021 2021 bundle2-input-part: "check:phases" supported
2022 2022 bundle2-input-part: total payload size 48
2023 2023 bundle2-input-part: "check:heads" supported
@@ -2083,14 +2083,14 b" User 'astro' must not be denied"
2083 2083 911600dab2ae7a9baff75958b84fe606851ce955
2084 2084 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
2085 2085 bundle2-output-bundle: "HG20", 5 parts total
2086 bundle2-output-part: "replycaps" 188 bytes payload
2086 bundle2-output-part: "replycaps" 205 bytes payload
2087 2087 bundle2-output-part: "check:phases" 48 bytes payload
2088 2088 bundle2-output-part: "check:heads" streamed payload
2089 2089 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2090 2090 bundle2-output-part: "phase-heads" 48 bytes payload
2091 2091 bundle2-input-bundle: with-transaction
2092 2092 bundle2-input-part: "replycaps" supported
2093 bundle2-input-part: total payload size 188
2093 bundle2-input-part: total payload size 205
2094 2094 bundle2-input-part: "check:phases" supported
2095 2095 bundle2-input-part: total payload size 48
2096 2096 bundle2-input-part: "check:heads" supported
@@ -2166,14 +2166,14 b' Non-astro users must be denied'
2166 2166 911600dab2ae7a9baff75958b84fe606851ce955
2167 2167 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
2168 2168 bundle2-output-bundle: "HG20", 5 parts total
2169 bundle2-output-part: "replycaps" 188 bytes payload
2169 bundle2-output-part: "replycaps" 205 bytes payload
2170 2170 bundle2-output-part: "check:phases" 48 bytes payload
2171 2171 bundle2-output-part: "check:heads" streamed payload
2172 2172 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2173 2173 bundle2-output-part: "phase-heads" 48 bytes payload
2174 2174 bundle2-input-bundle: with-transaction
2175 2175 bundle2-input-part: "replycaps" supported
2176 bundle2-input-part: total payload size 188
2176 bundle2-input-part: total payload size 205
2177 2177 bundle2-input-part: "check:phases" supported
2178 2178 bundle2-input-part: total payload size 48
2179 2179 bundle2-input-part: "check:heads" supported
@@ -129,10 +129,10 b' delete a remote bookmark'
129 129 bundle2-output: bundle parameter:
130 130 bundle2-output: start of parts
131 131 bundle2-output: bundle part: "replycaps"
132 bundle2-output-part: "replycaps" 205 bytes payload
132 bundle2-output-part: "replycaps" 222 bytes payload
133 133 bundle2-output: part 0: "REPLYCAPS"
134 134 bundle2-output: header chunk size: 16
135 bundle2-output: payload chunk size: 205
135 bundle2-output: payload chunk size: 222
136 136 bundle2-output: closing payload chunk
137 137 bundle2-output: bundle part: "check:bookmarks"
138 138 bundle2-output-part: "check:bookmarks" 23 bytes payload
@@ -162,9 +162,9 b' delete a remote bookmark'
162 162 bundle2-input: part parameters: 0
163 163 bundle2-input: found a handler for part replycaps
164 164 bundle2-input-part: "replycaps" supported
165 bundle2-input: payload chunk size: 205
165 bundle2-input: payload chunk size: 222
166 166 bundle2-input: payload chunk size: 0
167 bundle2-input-part: total payload size 205
167 bundle2-input-part: total payload size 222
168 168 bundle2-input: part header size: 22
169 169 bundle2-input: part type: "CHECK:BOOKMARKS"
170 170 bundle2-input: part id: "1"
@@ -241,10 +241,10 b' delete a remote bookmark'
241 241 bundle2-output: bundle parameter:
242 242 bundle2-output: start of parts
243 243 bundle2-output: bundle part: "replycaps"
244 bundle2-output-part: "replycaps" 205 bytes payload
244 bundle2-output-part: "replycaps" 222 bytes payload
245 245 bundle2-output: part 0: "REPLYCAPS"
246 246 bundle2-output: header chunk size: 16
247 bundle2-output: payload chunk size: 205
247 bundle2-output: payload chunk size: 222
248 248 bundle2-output: closing payload chunk
249 249 bundle2-output: bundle part: "check:bookmarks"
250 250 bundle2-output-part: "check:bookmarks" 23 bytes payload
@@ -275,9 +275,9 b' delete a remote bookmark'
275 275 bundle2-input: part parameters: 0
276 276 bundle2-input: found a handler for part replycaps
277 277 bundle2-input-part: "replycaps" supported
278 bundle2-input: payload chunk size: 205
278 bundle2-input: payload chunk size: 222
279 279 bundle2-input: payload chunk size: 0
280 bundle2-input-part: total payload size 205
280 bundle2-input-part: total payload size 222
281 281 bundle2-input: part header size: 22
282 282 bundle2-input: part type: "CHECK:BOOKMARKS"
283 283 bundle2-input: part id: "1"
@@ -71,6 +71,7 b' Cannot stream clone when server.uncompre'
71 71 remote-changegroup
72 72 http
73 73 https
74 rev-branch-cache
74 75
75 76 $ hg clone --stream -U http://localhost:$HGPORT server-disabled
76 77 warning: stream clone requested but server has them disabled
@@ -136,6 +137,7 b' Cannot stream clone when server.uncompre'
136 137 remote-changegroup
137 138 http
138 139 https
140 rev-branch-cache
139 141
140 142 $ hg clone --stream -U http://localhost:$HGPORT server-disabled
141 143 warning: stream clone requested but server has them disabled
@@ -379,6 +379,7 b' Test debugcapabilities command:'
379 379 remote-changegroup
380 380 http
381 381 https
382 rev-branch-cache
382 383 stream
383 384 v2
384 385
@@ -397,7 +398,7 b' Test debugpeer'
397 398 devel-peer-request: between
398 399 devel-peer-request: pairs: 81 bytes
399 400 sending between command
400 remote: 384
401 remote: 403
401 402 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
402 403 remote: 1
403 404 url: ssh://user@dummy/debugrevlog
@@ -118,9 +118,9 b' Failure on subsequent HTTP request on th'
118 118 write(23) -> Server: badhttpserver\r\n
119 119 write(37) -> Date: $HTTP_DATE$\r\n
120 120 write(41) -> Content-Type: application/mercurial-0.1\r\n
121 write(21) -> Content-Length: 417\r\n
121 write(21) -> Content-Length: 436\r\n
122 122 write(2) -> \r\n
123 write(417) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
123 write(436) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
124 124 readline(4? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
125 125 readline(1? from -1) -> (1?) Accept-Encoding* (glob)
126 126 read limit reached; closing socket
@@ -159,9 +159,9 b' Failure to read getbundle HTTP request'
159 159 write(23) -> Server: badhttpserver\r\n
160 160 write(37) -> Date: $HTTP_DATE$\r\n
161 161 write(41) -> Content-Type: application/mercurial-0.1\r\n
162 write(21) -> Content-Length: 417\r\n
162 write(21) -> Content-Length: 436\r\n
163 163 write(2) -> \r\n
164 write(417) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
164 write(436) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
165 165 readline(13? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
166 166 readline(1?? from -1) -> (27) Accept-Encoding: identity\r\n (glob)
167 167 readline(8? from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
@@ -216,9 +216,9 b' Now do a variation using POST to send ar'
216 216 write(23) -> Server: badhttpserver\r\n
217 217 write(37) -> Date: $HTTP_DATE$\r\n
218 218 write(41) -> Content-Type: application/mercurial-0.1\r\n
219 write(21) -> Content-Length: 430\r\n
219 write(21) -> Content-Length: 449\r\n
220 220 write(2) -> \r\n
221 write(430) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httppostargs httpmediatype=0.1rx,0.1tx,0.2tx compression=none
221 write(449) -> lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httppostargs httpmediatype=0.1rx,0.1tx,0.2tx compression=none
222 222 readline\(14[67] from 65537\) -> \(2[67]\) POST /\?cmd=batch HTTP/1.1\\r\\n (re)
223 223 readline\(1(19|20) from -1\) -> \(27\) Accept-Encoding: identity\\r\\n (re)
224 224 readline(9? from -1) -> (41) content-type: application/mercurial-0.1\r\n (glob)
@@ -275,7 +275,7 b' Server sends an incomplete capabilities '
275 275 $ cat hg.pid > $DAEMON_PIDS
276 276
277 277 $ hg clone http://localhost:$HGPORT/ clone
278 abort: HTTP request error (incomplete response; expected 397 bytes got 20)
278 abort: HTTP request error (incomplete response; expected 416 bytes got 20)
279 279 (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
280 280 [255]
281 281
@@ -292,16 +292,16 b' Server sends an incomplete capabilities '
292 292 write(23 from 23) -> (121) Server: badhttpserver\r\n
293 293 write(37 from 37) -> (84) Date: $HTTP_DATE$\r\n
294 294 write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n
295 write(21 from 21) -> (22) Content-Length: 417\r\n
295 write(21 from 21) -> (22) Content-Length: 436\r\n
296 296 write(2 from 2) -> (20) \r\n
297 write(20 from 417) -> (0) lookup branchmap pus
297 write(20 from 436) -> (0) lookup branchmap pus
298 298 write limit reached; closing socket
299 299
300 300 $ rm -f error.log
301 301
302 302 Server sends incomplete headers for batch request
303 303
304 $ hg serve --config badserver.closeaftersendbytes=695 -p $HGPORT -d --pid-file=hg.pid -E error.log
304 $ hg serve --config badserver.closeaftersendbytes=714 -p $HGPORT -d --pid-file=hg.pid -E error.log
305 305 $ cat hg.pid > $DAEMON_PIDS
306 306
307 307 TODO this output is horrible
@@ -323,13 +323,13 b' TODO this output is horrible'
323 323 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
324 324 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
325 325 readline(-1) -> (2) \r\n
326 write(36 from 36) -> (659) HTTP/1.1 200 Script output follows\r\n
327 write(23 from 23) -> (636) Server: badhttpserver\r\n
328 write(37 from 37) -> (599) Date: $HTTP_DATE$\r\n
329 write(41 from 41) -> (558) Content-Type: application/mercurial-0.1\r\n
330 write(21 from 21) -> (537) Content-Length: 417\r\n
331 write(2 from 2) -> (535) \r\n
332 write(417 from 417) -> (118) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
326 write(36 from 36) -> (678) HTTP/1.1 200 Script output follows\r\n
327 write(23 from 23) -> (655) Server: badhttpserver\r\n
328 write(37 from 37) -> (618) Date: $HTTP_DATE$\r\n
329 write(41 from 41) -> (577) Content-Type: application/mercurial-0.1\r\n
330 write(21 from 21) -> (556) Content-Length: 436\r\n
331 write(2 from 2) -> (554) \r\n
332 write(436 from 436) -> (118) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
333 333 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
334 334 readline(-1) -> (27) Accept-Encoding: identity\r\n
335 335 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -350,7 +350,7 b' TODO this output is horrible'
350 350
351 351 Server sends an incomplete HTTP response body to batch request
352 352
353 $ hg serve --config badserver.closeaftersendbytes=760 -p $HGPORT -d --pid-file=hg.pid -E error.log
353 $ hg serve --config badserver.closeaftersendbytes=779 -p $HGPORT -d --pid-file=hg.pid -E error.log
354 354 $ cat hg.pid > $DAEMON_PIDS
355 355
356 356 TODO client spews a stack due to uncaught ValueError in batch.results()
@@ -371,13 +371,13 b' TODO client spews a stack due to uncaugh'
371 371 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
372 372 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
373 373 readline(-1) -> (2) \r\n
374 write(36 from 36) -> (724) HTTP/1.1 200 Script output follows\r\n
375 write(23 from 23) -> (701) Server: badhttpserver\r\n
376 write(37 from 37) -> (664) Date: $HTTP_DATE$\r\n
377 write(41 from 41) -> (623) Content-Type: application/mercurial-0.1\r\n
378 write(21 from 21) -> (602) Content-Length: 417\r\n
379 write(2 from 2) -> (600) \r\n
380 write(417 from 417) -> (183) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
374 write(36 from 36) -> (743) HTTP/1.1 200 Script output follows\r\n
375 write(23 from 23) -> (720) Server: badhttpserver\r\n
376 write(37 from 37) -> (683) Date: $HTTP_DATE$\r\n
377 write(41 from 41) -> (642) Content-Type: application/mercurial-0.1\r\n
378 write(21 from 21) -> (621) Content-Length: 436\r\n
379 write(2 from 2) -> (619) \r\n
380 write(436 from 436) -> (183) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
381 381 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
382 382 readline(-1) -> (27) Accept-Encoding: identity\r\n
383 383 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -400,7 +400,7 b' TODO client spews a stack due to uncaugh'
400 400
401 401 Server sends incomplete headers for getbundle response
402 402
403 $ hg serve --config badserver.closeaftersendbytes=907 -p $HGPORT -d --pid-file=hg.pid -E error.log
403 $ hg serve --config badserver.closeaftersendbytes=926 -p $HGPORT -d --pid-file=hg.pid -E error.log
404 404 $ cat hg.pid > $DAEMON_PIDS
405 405
406 406 TODO this output is terrible
@@ -423,13 +423,13 b' TODO this output is terrible'
423 423 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
424 424 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
425 425 readline(-1) -> (2) \r\n
426 write(36 from 36) -> (871) HTTP/1.1 200 Script output follows\r\n
427 write(23 from 23) -> (848) Server: badhttpserver\r\n
428 write(37 from 37) -> (811) Date: $HTTP_DATE$\r\n
429 write(41 from 41) -> (770) Content-Type: application/mercurial-0.1\r\n
430 write(21 from 21) -> (749) Content-Length: 417\r\n
431 write(2 from 2) -> (747) \r\n
432 write(417 from 417) -> (330) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
426 write(36 from 36) -> (890) HTTP/1.1 200 Script output follows\r\n
427 write(23 from 23) -> (867) Server: badhttpserver\r\n
428 write(37 from 37) -> (830) Date: $HTTP_DATE$\r\n
429 write(41 from 41) -> (789) Content-Type: application/mercurial-0.1\r\n
430 write(21 from 21) -> (768) Content-Length: 436\r\n
431 write(2 from 2) -> (766) \r\n
432 write(436 from 436) -> (330) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
433 433 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
434 434 readline(-1) -> (27) Accept-Encoding: identity\r\n
435 435 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -449,7 +449,7 b' TODO this output is terrible'
449 449 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
450 450 readline(-1) -> (27) Accept-Encoding: identity\r\n
451 451 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
452 readline(-1) -> (440) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
452 readline(-1) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
453 453 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
454 454 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
455 455 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
@@ -466,7 +466,7 b' TODO this output is terrible'
466 466
467 467 Server sends empty HTTP body for getbundle
468 468
469 $ hg serve --config badserver.closeaftersendbytes=945 -p $HGPORT -d --pid-file=hg.pid -E error.log
469 $ hg serve --config badserver.closeaftersendbytes=964 -p $HGPORT -d --pid-file=hg.pid -E error.log
470 470 $ cat hg.pid > $DAEMON_PIDS
471 471
472 472 $ hg clone http://localhost:$HGPORT/ clone
@@ -484,13 +484,13 b' Server sends empty HTTP body for getbund'
484 484 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
485 485 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
486 486 readline(-1) -> (2) \r\n
487 write(36 from 36) -> (909) HTTP/1.1 200 Script output follows\r\n
488 write(23 from 23) -> (886) Server: badhttpserver\r\n
489 write(37 from 37) -> (849) Date: $HTTP_DATE$\r\n
490 write(41 from 41) -> (808) Content-Type: application/mercurial-0.1\r\n
491 write(21 from 21) -> (787) Content-Length: 417\r\n
492 write(2 from 2) -> (785) \r\n
493 write(417 from 417) -> (368) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
487 write(36 from 36) -> (928) HTTP/1.1 200 Script output follows\r\n
488 write(23 from 23) -> (905) Server: badhttpserver\r\n
489 write(37 from 37) -> (868) Date: $HTTP_DATE$\r\n
490 write(41 from 41) -> (827) Content-Type: application/mercurial-0.1\r\n
491 write(21 from 21) -> (806) Content-Length: 436\r\n
492 write(2 from 2) -> (804) \r\n
493 write(436 from 436) -> (368) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
494 494 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
495 495 readline(-1) -> (27) Accept-Encoding: identity\r\n
496 496 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -510,7 +510,7 b' Server sends empty HTTP body for getbund'
510 510 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
511 511 readline(-1) -> (27) Accept-Encoding: identity\r\n
512 512 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
513 readline(-1) -> (440) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
513 readline(-1) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
514 514 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
515 515 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
516 516 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
@@ -529,7 +529,7 b' Server sends empty HTTP body for getbund'
529 529
530 530 Server sends partial compression string
531 531
532 $ hg serve --config badserver.closeaftersendbytes=969 -p $HGPORT -d --pid-file=hg.pid -E error.log
532 $ hg serve --config badserver.closeaftersendbytes=988 -p $HGPORT -d --pid-file=hg.pid -E error.log
533 533 $ cat hg.pid > $DAEMON_PIDS
534 534
535 535 $ hg clone http://localhost:$HGPORT/ clone
@@ -547,13 +547,13 b' Server sends partial compression string'
547 547 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
548 548 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
549 549 readline(-1) -> (2) \r\n
550 write(36 from 36) -> (933) HTTP/1.1 200 Script output follows\r\n
551 write(23 from 23) -> (910) Server: badhttpserver\r\n
552 write(37 from 37) -> (873) Date: $HTTP_DATE$\r\n
553 write(41 from 41) -> (832) Content-Type: application/mercurial-0.1\r\n
554 write(21 from 21) -> (811) Content-Length: 417\r\n
555 write(2 from 2) -> (809) \r\n
556 write(417 from 417) -> (392) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
550 write(36 from 36) -> (952) HTTP/1.1 200 Script output follows\r\n
551 write(23 from 23) -> (929) Server: badhttpserver\r\n
552 write(37 from 37) -> (892) Date: $HTTP_DATE$\r\n
553 write(41 from 41) -> (851) Content-Type: application/mercurial-0.1\r\n
554 write(21 from 21) -> (830) Content-Length: 436\r\n
555 write(2 from 2) -> (828) \r\n
556 write(436 from 436) -> (392) lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
557 557 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
558 558 readline(-1) -> (27) Accept-Encoding: identity\r\n
559 559 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -573,7 +573,7 b' Server sends partial compression string'
573 573 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
574 574 readline(-1) -> (27) Accept-Encoding: identity\r\n
575 575 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
576 readline(-1) -> (440) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
576 readline(-1) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
577 577 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
578 578 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
579 579 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
@@ -595,7 +595,7 b' Server sends partial compression string'
595 595
596 596 Server sends partial bundle2 header magic
597 597
598 $ hg serve --config badserver.closeaftersendbytes=966 -p $HGPORT -d --pid-file=hg.pid -E error.log
598 $ hg serve --config badserver.closeaftersendbytes=985 -p $HGPORT -d --pid-file=hg.pid -E error.log
599 599 $ cat hg.pid > $DAEMON_PIDS
600 600
601 601 $ hg clone http://localhost:$HGPORT/ clone
@@ -619,7 +619,7 b' Server sends partial bundle2 header magi'
619 619
620 620 Server sends incomplete bundle2 stream params length
621 621
622 $ hg serve --config badserver.closeaftersendbytes=975 -p $HGPORT -d --pid-file=hg.pid -E error.log
622 $ hg serve --config badserver.closeaftersendbytes=994 -p $HGPORT -d --pid-file=hg.pid -E error.log
623 623 $ cat hg.pid > $DAEMON_PIDS
624 624
625 625 $ hg clone http://localhost:$HGPORT/ clone
@@ -644,7 +644,7 b' Server sends incomplete bundle2 stream p'
644 644
645 645 Servers stops after bundle2 stream params header
646 646
647 $ hg serve --config badserver.closeaftersendbytes=978 -p $HGPORT -d --pid-file=hg.pid -E error.log
647 $ hg serve --config badserver.closeaftersendbytes=997 -p $HGPORT -d --pid-file=hg.pid -E error.log
648 648 $ cat hg.pid > $DAEMON_PIDS
649 649
650 650 $ hg clone http://localhost:$HGPORT/ clone
@@ -669,7 +669,7 b' Servers stops after bundle2 stream param'
669 669
670 670 Server stops sending after bundle2 part header length
671 671
672 $ hg serve --config badserver.closeaftersendbytes=987 -p $HGPORT -d --pid-file=hg.pid -E error.log
672 $ hg serve --config badserver.closeaftersendbytes=1006 -p $HGPORT -d --pid-file=hg.pid -E error.log
673 673 $ cat hg.pid > $DAEMON_PIDS
674 674
675 675 $ hg clone http://localhost:$HGPORT/ clone
@@ -695,7 +695,7 b' Server stops sending after bundle2 part '
695 695
696 696 Server stops sending after bundle2 part header
697 697
698 $ hg serve --config badserver.closeaftersendbytes=1034 -p $HGPORT -d --pid-file=hg.pid -E error.log
698 $ hg serve --config badserver.closeaftersendbytes=1053 -p $HGPORT -d --pid-file=hg.pid -E error.log
699 699 $ cat hg.pid > $DAEMON_PIDS
700 700
701 701 $ hg clone http://localhost:$HGPORT/ clone
@@ -725,7 +725,7 b' Server stops sending after bundle2 part '
725 725
726 726 Server stops after bundle2 part payload chunk size
727 727
728 $ hg serve --config badserver.closeaftersendbytes=1055 -p $HGPORT -d --pid-file=hg.pid -E error.log
728 $ hg serve --config badserver.closeaftersendbytes=1074 -p $HGPORT -d --pid-file=hg.pid -E error.log
729 729 $ cat hg.pid > $DAEMON_PIDS
730 730
731 731 $ hg clone http://localhost:$HGPORT/ clone
@@ -756,7 +756,7 b' Server stops after bundle2 part payload '
756 756
757 757 Server stops sending in middle of bundle2 payload chunk
758 758
759 $ hg serve --config badserver.closeaftersendbytes=1516 -p $HGPORT -d --pid-file=hg.pid -E error.log
759 $ hg serve --config badserver.closeaftersendbytes=1535 -p $HGPORT -d --pid-file=hg.pid -E error.log
760 760 $ cat hg.pid > $DAEMON_PIDS
761 761
762 762 $ hg clone http://localhost:$HGPORT/ clone
@@ -788,7 +788,7 b' Server stops sending in middle of bundle'
788 788
789 789 Server stops sending after 0 length payload chunk size
790 790
791 $ hg serve --config badserver.closeaftersendbytes=1547 -p $HGPORT -d --pid-file=hg.pid -E error.log
791 $ hg serve --config badserver.closeaftersendbytes=1566 -p $HGPORT -d --pid-file=hg.pid -E error.log
792 792 $ cat hg.pid > $DAEMON_PIDS
793 793
794 794 $ hg clone http://localhost:$HGPORT/ clone
@@ -825,7 +825,8 b' Server stops sending after 0 length payl'
825 825 Server stops sending after 0 part bundle part header (indicating end of bundle2 payload)
826 826 This is before the 0 size chunked transfer part that signals end of HTTP response.
827 827
828 $ hg serve --config badserver.closeaftersendbytes=1722 -p $HGPORT -d --pid-file=hg.pid -E error.log
828 # $ hg serve --config badserver.closeaftersendbytes=1741 -p $HGPORT -d --pid-file=hg.pid -E error.log
829 $ hg serve --config badserver.closeaftersendbytes=1848 -p $HGPORT -d --pid-file=hg.pid -E error.log
829 830 $ cat hg.pid > $DAEMON_PIDS
830 831
831 832 $ hg clone http://localhost:$HGPORT/ clone
@@ -841,24 +842,24 b' This is before the 0 size chunked transf'
841 842 $ killdaemons.py $DAEMON_PIDS
842 843
843 844 $ tail -22 error.log
844 write(28 from 28) -> (779) Transfer-Encoding: chunked\r\n
845 write(2 from 2) -> (777) \r\n
846 write(6 from 6) -> (771) 1\\r\\n\x04\\r\\n (esc)
847 write(9 from 9) -> (762) 4\r\nnone\r\n
848 write(9 from 9) -> (753) 4\r\nHG20\r\n
849 write(9 from 9) -> (744) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
850 write(9 from 9) -> (735) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
851 write(47 from 47) -> (688) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
852 write(9 from 9) -> (679) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
853 write(473 from 473) -> (206) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
854 write(9 from 9) -> (197) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
855 write(9 from 9) -> (188) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
856 write(38 from 38) -> (150) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc)
857 write(9 from 9) -> (141) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
858 write(64 from 64) -> (77) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n
859 write(9 from 9) -> (68) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
860 write(9 from 9) -> (59) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
861 write(41 from 41) -> (18) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc)
845 write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
846 write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
847 write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
848 write(9 from 9) -> (786) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
849 write(473 from 473) -> (313) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
850 write(9 from 9) -> (304) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
851 write(9 from 9) -> (295) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
852 write(38 from 38) -> (257) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc)
853 write(9 from 9) -> (248) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
854 write(64 from 64) -> (184) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n
855 write(9 from 9) -> (175) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
856 write(9 from 9) -> (166) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
857 write(41 from 41) -> (125) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc)
858 write(9 from 9) -> (116) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
859 write(9 from 9) -> (107) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc)
860 write(35 from 35) -> (72) 1d\\r\\n\x16CACHE:REV-BRANCH-CACHE\x00\x00\x00\x03\x00\x00\\r\\n (esc)
861 write(9 from 9) -> (63) 4\\r\\n\x00\x00\x00'\\r\\n (esc)
862 write(45 from 45) -> (18) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc)
862 863 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
863 864 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
864 865 write limit reached; closing socket
@@ -869,7 +870,7 b' This is before the 0 size chunked transf'
869 870
870 871 Server sends a size 0 chunked-transfer size without terminating \r\n
871 872
872 $ hg serve --config badserver.closeaftersendbytes=1725 -p $HGPORT -d --pid-file=hg.pid -E error.log
873 $ hg serve --config badserver.closeaftersendbytes=1851 -p $HGPORT -d --pid-file=hg.pid -E error.log
873 874 $ cat hg.pid > $DAEMON_PIDS
874 875
875 876 $ hg clone http://localhost:$HGPORT/ clone
@@ -885,24 +886,24 b' Server sends a size 0 chunked-transfer s'
885 886 $ killdaemons.py $DAEMON_PIDS
886 887
887 888 $ tail -23 error.log
888 write(28 from 28) -> (782) Transfer-Encoding: chunked\r\n
889 write(2 from 2) -> (780) \r\n
890 write(6 from 6) -> (774) 1\\r\\n\x04\\r\\n (esc)
891 write(9 from 9) -> (765) 4\r\nnone\r\n
892 write(9 from 9) -> (756) 4\r\nHG20\r\n
893 write(9 from 9) -> (747) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
894 write(9 from 9) -> (738) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
895 write(47 from 47) -> (691) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
896 write(9 from 9) -> (682) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
897 write(473 from 473) -> (209) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
898 write(9 from 9) -> (200) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
899 write(9 from 9) -> (191) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
900 write(38 from 38) -> (153) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc)
901 write(9 from 9) -> (144) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
902 write(64 from 64) -> (80) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n
903 write(9 from 9) -> (71) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
904 write(9 from 9) -> (62) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
905 write(41 from 41) -> (21) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc)
889 write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
890 write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
891 write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
892 write(9 from 9) -> (789) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
893 write(473 from 473) -> (316) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
894 write(9 from 9) -> (307) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
895 write(9 from 9) -> (298) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
896 write(38 from 38) -> (260) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc)
897 write(9 from 9) -> (251) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
898 write(64 from 64) -> (187) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n
899 write(9 from 9) -> (178) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
900 write(9 from 9) -> (169) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
901 write(41 from 41) -> (128) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc)
902 write(9 from 9) -> (119) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
903 write(9 from 9) -> (110) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc)
904 write(35 from 35) -> (75) 1d\\r\\n\x16CACHE:REV-BRANCH-CACHE\x00\x00\x00\x03\x00\x00\\r\\n (esc)
905 write(9 from 9) -> (66) 4\\r\\n\x00\x00\x00'\\r\\n (esc)
906 write(45 from 45) -> (21) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc)
906 907 write(9 from 9) -> (12) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
907 908 write(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
908 909 write(3 from 5) -> (0) 0\r\n
@@ -307,20 +307,20 b' test http authentication'
307 307 list of changesets:
308 308 7f4e523d01f2cc3765ac8934da3d14db775ff872
309 309 bundle2-output-bundle: "HG20", 5 parts total
310 bundle2-output-part: "replycaps" 188 bytes payload
310 bundle2-output-part: "replycaps" 205 bytes payload
311 311 bundle2-output-part: "check:phases" 24 bytes payload
312 312 bundle2-output-part: "check:heads" streamed payload
313 313 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
314 314 bundle2-output-part: "phase-heads" 24 bytes payload
315 315 sending unbundle command
316 sending 996 bytes
316 sending 1013 bytes
317 317 devel-peer-request: POST http://localhost:$HGPORT2/?cmd=unbundle
318 devel-peer-request: Content-length 996
318 devel-peer-request: Content-length 1013
319 319 devel-peer-request: Content-type application/mercurial-0.1
320 320 devel-peer-request: Vary X-HgArg-1,X-HgProto-1
321 321 devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$
322 322 devel-peer-request: 16 bytes of commands arguments in headers
323 devel-peer-request: 996 bytes of data
323 devel-peer-request: 1013 bytes of data
324 324 devel-peer-request: finished in *.???? seconds (200) (glob)
325 325 bundle2-input-bundle: no-transaction
326 326 bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
@@ -155,10 +155,11 b' client only pulls down 1 changeset'
155 155 list of changesets:
156 156 bec0734cd68e84477ba7fc1d13e6cff53ab70129
157 157 listing keys for "bookmarks"
158 bundle2-output-bundle: "HG20", 3 parts total
158 bundle2-output-bundle: "HG20", 4 parts total
159 159 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
160 160 bundle2-output-part: "listkeys" (params: 1 mandatory) empty payload
161 161 bundle2-output-part: "phase-heads" 24 bytes payload
162 bundle2-output-part: "cache:rev-branch-cache" streamed payload
162 163 bundle2-input-bundle: with-transaction
163 164 bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported
164 165 adding changesets
@@ -171,7 +172,9 b' client only pulls down 1 changeset'
171 172 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
172 173 bundle2-input-part: "phase-heads" supported
173 174 bundle2-input-part: total payload size 24
174 bundle2-input-bundle: 2 parts total
175 bundle2-input-part: "cache:rev-branch-cache" supported
176 bundle2-input-part: total payload size 39
177 bundle2-input-bundle: 3 parts total
175 178 checking for updated bookmarks
176 179 updating the branch cache
177 180 new changesets bec0734cd68e
@@ -325,13 +325,13 b' Check that the right ancestors is used w'
325 325 bundle2-input-part: total payload size 1686
326 326 bundle2-input-part: "cache:rev-branch-cache" supported
327 327 bundle2-input-part: total payload size 74
328 truncating cache/rbc-revs-v1 to 56
328 329 bundle2-input-part: "phase-heads" supported
329 330 bundle2-input-part: total payload size 24
330 331 bundle2-input-bundle: 2 parts total
331 332 updating the branch cache
332 333 invalid branchheads cache (served): tip differs
333 334 rebase completed
334 truncating cache/rbc-revs-v1 to 0
335 335
336 336 Test minimization of merge conflicts
337 337 $ hg up -q null
@@ -478,9 +478,9 b' debug output'
478 478 sending upgrade request: * proto=exp-ssh-v2-0001 (glob) (sshv2 !)
479 479 sending hello command
480 480 sending between command
481 remote: 403 (sshv1 !)
481 482 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
482 remote: 384 (sshv1 !)
483 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
483 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN (sshv2 !)
484 484 remote: 1 (sshv1 !)
485 485 preparing listkeys for "bookmarks"
486 486 sending listkeys command
@@ -56,8 +56,8 b' Test pushing bundle1 payload to a server'
56 56 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
57 57 i> flush() -> None
58 58 o> readline() -> 4:
59 o> 384\n
60 o> readline() -> 384:
59 o> 403\n
60 o> readline() -> 403:
61 61 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
62 62 o> readline() -> 2:
63 63 o> 1\n
@@ -110,8 +110,8 b' Test pushing bundle1 payload to a server'
110 110 o> readline() -> 62:
111 111 o> upgraded * exp-ssh-v2-0001\n (glob)
112 112 o> readline() -> 4:
113 o> 383\n
114 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
113 o> 402\n
114 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
115 115 o> read(1) -> 1:
116 116 o> \n
117 117 sending unbundle command
@@ -225,8 +225,8 b' ui.write() in hook is redirected to stde'
225 225 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
226 226 i> flush() -> None
227 227 o> readline() -> 4:
228 o> 384\n
229 o> readline() -> 384:
228 o> 403\n
229 o> readline() -> 403:
230 230 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
231 231 o> readline() -> 2:
232 232 o> 1\n
@@ -285,8 +285,8 b' ui.write() in hook is redirected to stde'
285 285 o> readline() -> 62:
286 286 o> upgraded * exp-ssh-v2-0001\n (glob)
287 287 o> readline() -> 4:
288 o> 383\n
289 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
288 o> 402\n
289 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
290 290 o> read(1) -> 1:
291 291 o> \n
292 292 sending unbundle command
@@ -353,8 +353,8 b' And a variation that writes multiple lin'
353 353 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
354 354 i> flush() -> None
355 355 o> readline() -> 4:
356 o> 384\n
357 o> readline() -> 384:
356 o> 403\n
357 o> readline() -> 403:
358 358 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
359 359 o> readline() -> 2:
360 360 o> 1\n
@@ -414,8 +414,8 b' And a variation that writes multiple lin'
414 414 o> readline() -> 62:
415 415 o> upgraded * exp-ssh-v2-0001\n (glob)
416 416 o> readline() -> 4:
417 o> 383\n
418 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
417 o> 402\n
418 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
419 419 o> read(1) -> 1:
420 420 o> \n
421 421 sending unbundle command
@@ -483,8 +483,8 b' And a variation that does a ui.flush() a'
483 483 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
484 484 i> flush() -> None
485 485 o> readline() -> 4:
486 o> 384\n
487 o> readline() -> 384:
486 o> 403\n
487 o> readline() -> 403:
488 488 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
489 489 o> readline() -> 2:
490 490 o> 1\n
@@ -543,8 +543,8 b' And a variation that does a ui.flush() a'
543 543 o> readline() -> 62:
544 544 o> upgraded * exp-ssh-v2-0001\n (glob)
545 545 o> readline() -> 4:
546 o> 383\n
547 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
546 o> 402\n
547 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
548 548 o> read(1) -> 1:
549 549 o> \n
550 550 sending unbundle command
@@ -611,8 +611,8 b' Multiple writes + flush'
611 611 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
612 612 i> flush() -> None
613 613 o> readline() -> 4:
614 o> 384\n
615 o> readline() -> 384:
614 o> 403\n
615 o> readline() -> 403:
616 616 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
617 617 o> readline() -> 2:
618 618 o> 1\n
@@ -672,8 +672,8 b' Multiple writes + flush'
672 672 o> readline() -> 62:
673 673 o> upgraded * exp-ssh-v2-0001\n (glob)
674 674 o> readline() -> 4:
675 o> 383\n
676 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
675 o> 402\n
676 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
677 677 o> read(1) -> 1:
678 678 o> \n
679 679 sending unbundle command
@@ -741,8 +741,8 b' ui.write() + ui.write_err() output is ca'
741 741 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
742 742 i> flush() -> None
743 743 o> readline() -> 4:
744 o> 384\n
745 o> readline() -> 384:
744 o> 403\n
745 o> readline() -> 403:
746 746 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
747 747 o> readline() -> 2:
748 748 o> 1\n
@@ -804,8 +804,8 b' ui.write() + ui.write_err() output is ca'
804 804 o> readline() -> 62:
805 805 o> upgraded * exp-ssh-v2-0001\n (glob)
806 806 o> readline() -> 4:
807 o> 383\n
808 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
807 o> 402\n
808 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
809 809 o> read(1) -> 1:
810 810 o> \n
811 811 sending unbundle command
@@ -875,8 +875,8 b' print() output is captured'
875 875 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
876 876 i> flush() -> None
877 877 o> readline() -> 4:
878 o> 384\n
879 o> readline() -> 384:
878 o> 403\n
879 o> readline() -> 403:
880 880 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
881 881 o> readline() -> 2:
882 882 o> 1\n
@@ -935,8 +935,8 b' print() output is captured'
935 935 o> readline() -> 62:
936 936 o> upgraded * exp-ssh-v2-0001\n (glob)
937 937 o> readline() -> 4:
938 o> 383\n
939 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
938 o> 402\n
939 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
940 940 o> read(1) -> 1:
941 941 o> \n
942 942 sending unbundle command
@@ -1003,8 +1003,8 b' Mixed print() and ui.write() are both ca'
1003 1003 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1004 1004 i> flush() -> None
1005 1005 o> readline() -> 4:
1006 o> 384\n
1007 o> readline() -> 384:
1006 o> 403\n
1007 o> readline() -> 403:
1008 1008 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1009 1009 o> readline() -> 2:
1010 1010 o> 1\n
@@ -1066,8 +1066,8 b' Mixed print() and ui.write() are both ca'
1066 1066 o> readline() -> 62:
1067 1067 o> upgraded * exp-ssh-v2-0001\n (glob)
1068 1068 o> readline() -> 4:
1069 o> 383\n
1070 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1069 o> 402\n
1070 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1071 1071 o> read(1) -> 1:
1072 1072 o> \n
1073 1073 sending unbundle command
@@ -1137,8 +1137,8 b' print() to stdout and stderr both get ca'
1137 1137 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1138 1138 i> flush() -> None
1139 1139 o> readline() -> 4:
1140 o> 384\n
1141 o> readline() -> 384:
1140 o> 403\n
1141 o> readline() -> 403:
1142 1142 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1143 1143 o> readline() -> 2:
1144 1144 o> 1\n
@@ -1200,8 +1200,8 b' print() to stdout and stderr both get ca'
1200 1200 o> readline() -> 62:
1201 1201 o> upgraded * exp-ssh-v2-0001\n (glob)
1202 1202 o> readline() -> 4:
1203 o> 383\n
1204 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1203 o> 402\n
1204 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1205 1205 o> read(1) -> 1:
1206 1206 o> \n
1207 1207 sending unbundle command
@@ -1277,8 +1277,8 b' Shell hook writing to stdout has output '
1277 1277 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1278 1278 i> flush() -> None
1279 1279 o> readline() -> 4:
1280 o> 384\n
1281 o> readline() -> 384:
1280 o> 403\n
1281 o> readline() -> 403:
1282 1282 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1283 1283 o> readline() -> 2:
1284 1284 o> 1\n
@@ -1338,8 +1338,8 b' Shell hook writing to stdout has output '
1338 1338 o> readline() -> 62:
1339 1339 o> upgraded * exp-ssh-v2-0001\n (glob)
1340 1340 o> readline() -> 4:
1341 o> 383\n
1342 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1341 o> 402\n
1342 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1343 1343 o> read(1) -> 1:
1344 1344 o> \n
1345 1345 sending unbundle command
@@ -1408,8 +1408,8 b' Shell hook writing to stderr has output '
1408 1408 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1409 1409 i> flush() -> None
1410 1410 o> readline() -> 4:
1411 o> 384\n
1412 o> readline() -> 384:
1411 o> 403\n
1412 o> readline() -> 403:
1413 1413 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1414 1414 o> readline() -> 2:
1415 1415 o> 1\n
@@ -1469,8 +1469,8 b' Shell hook writing to stderr has output '
1469 1469 o> readline() -> 62:
1470 1470 o> upgraded * exp-ssh-v2-0001\n (glob)
1471 1471 o> readline() -> 4:
1472 o> 383\n
1473 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1472 o> 402\n
1473 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1474 1474 o> read(1) -> 1:
1475 1475 o> \n
1476 1476 sending unbundle command
@@ -1541,8 +1541,8 b' Shell hook writing to stdout and stderr '
1541 1541 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1542 1542 i> flush() -> None
1543 1543 o> readline() -> 4:
1544 o> 384\n
1545 o> readline() -> 384:
1544 o> 403\n
1545 o> readline() -> 403:
1546 1546 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1547 1547 o> readline() -> 2:
1548 1548 o> 1\n
@@ -1604,8 +1604,8 b' Shell hook writing to stdout and stderr '
1604 1604 o> readline() -> 62:
1605 1605 o> upgraded * exp-ssh-v2-0001\n (glob)
1606 1606 o> readline() -> 4:
1607 o> 383\n
1608 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1607 o> 402\n
1608 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1609 1609 o> read(1) -> 1:
1610 1610 o> \n
1611 1611 sending unbundle command
@@ -1684,8 +1684,8 b' Shell and Python hooks writing to stdout'
1684 1684 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1685 1685 i> flush() -> None
1686 1686 o> readline() -> 4:
1687 o> 384\n
1688 o> readline() -> 384:
1687 o> 403\n
1688 o> readline() -> 403:
1689 1689 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1690 1690 o> readline() -> 2:
1691 1691 o> 1\n
@@ -1751,8 +1751,8 b' Shell and Python hooks writing to stdout'
1751 1751 o> readline() -> 62:
1752 1752 o> upgraded * exp-ssh-v2-0001\n (glob)
1753 1753 o> readline() -> 4:
1754 o> 383\n
1755 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1754 o> 402\n
1755 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1756 1756 o> read(1) -> 1:
1757 1757 o> \n
1758 1758 sending unbundle command
@@ -1826,8 +1826,8 b' Pushing a bundle1 with no output'
1826 1826 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1827 1827 i> flush() -> None
1828 1828 o> readline() -> 4:
1829 o> 384\n
1830 o> readline() -> 384:
1829 o> 403\n
1830 o> readline() -> 403:
1831 1831 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1832 1832 o> readline() -> 2:
1833 1833 o> 1\n
@@ -1882,8 +1882,8 b' Pushing a bundle1 with no output'
1882 1882 o> readline() -> 62:
1883 1883 o> upgraded * exp-ssh-v2-0001\n (glob)
1884 1884 o> readline() -> 4:
1885 o> 383\n
1886 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1885 o> 402\n
1886 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1887 1887 o> read(1) -> 1:
1888 1888 o> \n
1889 1889 sending unbundle command
@@ -1958,8 +1958,8 b' Pushing a bundle1 with ui.write() and ui'
1958 1958 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1959 1959 i> flush() -> None
1960 1960 o> readline() -> 4:
1961 o> 384\n
1962 o> readline() -> 384:
1961 o> 403\n
1962 o> readline() -> 403:
1963 1963 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1964 1964 o> readline() -> 2:
1965 1965 o> 1\n
@@ -2018,8 +2018,8 b' Pushing a bundle1 with ui.write() and ui'
2018 2018 o> readline() -> 62:
2019 2019 o> upgraded * exp-ssh-v2-0001\n (glob)
2020 2020 o> readline() -> 4:
2021 o> 383\n
2022 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2021 o> 402\n
2022 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2023 2023 o> read(1) -> 1:
2024 2024 o> \n
2025 2025 sending unbundle command
@@ -63,7 +63,7 b' Test a normal behaving server, for sanit'
63 63 devel-peer-request: between
64 64 devel-peer-request: pairs: 81 bytes
65 65 sending between command
66 remote: 384
66 remote: 403
67 67 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
68 68 remote: 1
69 69 url: ssh://user@dummy/server
@@ -82,8 +82,8 b' Server should answer the "hello" command'
82 82 i> write(6) -> 6:
83 83 i> hello\n
84 84 o> readline() -> 4:
85 o> 384\n
86 o> readline() -> 384:
85 o> 403\n
86 o> readline() -> 403:
87 87 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
88 88
89 89 `hg debugserve --sshstdio` works
@@ -92,7 +92,7 b' Server should answer the "hello" command'
92 92 $ hg debugserve --sshstdio << EOF
93 93 > hello
94 94 > EOF
95 384
95 403
96 96 capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
97 97
98 98 I/O logging works
@@ -101,23 +101,23 b' I/O logging works'
101 101 > hello
102 102 > EOF
103 103 o> write(4) -> 4:
104 o> 384\n
105 o> write(384) -> 384:
104 o> 403\n
105 o> write(403) -> 403:
106 106 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
107 384
107 403
108 108 capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
109 109 o> flush() -> None
110 110
111 111 $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
112 112 > hello
113 113 > EOF
114 384
114 403
115 115 capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
116 116
117 117 $ cat $TESTTMP/io
118 118 o> write(4) -> 4:
119 o> 384\n
120 o> write(384) -> 384:
119 o> 403\n
120 o> write(403) -> 403:
121 121 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
122 122 o> flush() -> None
123 123
@@ -143,8 +143,8 b' reply with empty response to the "betwee'
143 143 i> write(6) -> 6:
144 144 i> hello\n
145 145 o> readline() -> 4:
146 o> 384\n
147 o> readline() -> 384:
146 o> 403\n
147 o> readline() -> 403:
148 148 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
149 149 i> write(98) -> 98:
150 150 i> between\n
@@ -182,7 +182,7 b' SSH banner is not printed by default, ig'
182 182 remote: banner: line 7
183 183 remote: banner: line 8
184 184 remote: banner: line 9
185 remote: 384
185 remote: 403
186 186 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
187 187 remote: 1
188 188 url: ssh://user@dummy/server
@@ -237,8 +237,8 b' And test the banner with the raw protoco'
237 237 o> readline() -> 15:
238 238 o> banner: line 9\n
239 239 o> readline() -> 4:
240 o> 384\n
241 o> readline() -> 384:
240 o> 403\n
241 o> readline() -> 403:
242 242 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
243 243 i> write(98) -> 98:
244 244 i> between\n
@@ -290,12 +290,12 b' Sending an unknown command to the server'
290 290 i> write(6) -> 6:
291 291 i> hello\n
292 292 o> readline() -> 4:
293 o> 384\n
293 o> 403\n
294 294 i> write(98) -> 98:
295 295 i> between\n
296 296 i> pairs 81\n
297 297 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
298 o> readline() -> 384:
298 o> readline() -> 403:
299 299 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
300 300 o> readline() -> 2:
301 301 o> 1\n
@@ -310,7 +310,7 b' Sending an unknown command to the server'
310 310 devel-peer-request: pairs: 81 bytes
311 311 sending between command
312 312 remote: 0
313 remote: 384
313 remote: 403
314 314 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
315 315 remote: 1
316 316 url: ssh://user@dummy/server
@@ -356,8 +356,8 b' Send multiple unknown commands before he'
356 356 i> write(6) -> 6:
357 357 i> hello\n
358 358 o> readline() -> 4:
359 o> 384\n
360 o> readline() -> 384:
359 o> 403\n
360 o> readline() -> 403:
361 361 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
362 362 i> write(98) -> 98:
363 363 i> between\n
@@ -382,7 +382,7 b' Send multiple unknown commands before he'
382 382 remote: 0
383 383 remote: 0
384 384 remote: 0
385 remote: 384
385 remote: 403
386 386 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
387 387 remote: 1
388 388 url: ssh://user@dummy/server
@@ -436,8 +436,8 b' Send an unknown command before hello tha'
436 436 i> write(6) -> 6:
437 437 i> hello\n
438 438 o> readline() -> 4:
439 o> 384\n
440 o> readline() -> 384:
439 o> 403\n
440 o> readline() -> 403:
441 441 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
442 442 i> write(98) -> 98:
443 443 i> between\n
@@ -483,8 +483,8 b' Send an unknown command having an argume'
483 483 i> write(6) -> 6:
484 484 i> hello\n
485 485 o> readline() -> 4:
486 o> 384\n
487 o> readline() -> 384:
486 o> 403\n
487 o> readline() -> 403:
488 488 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
489 489 i> write(98) -> 98:
490 490 i> between\n
@@ -528,8 +528,8 b' Send an unknown command having an argume'
528 528 i> write(6) -> 6:
529 529 i> hello\n
530 530 o> readline() -> 4:
531 o> 384\n
532 o> readline() -> 384:
531 o> 403\n
532 o> readline() -> 403:
533 533 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
534 534 i> write(98) -> 98:
535 535 i> between\n
@@ -598,8 +598,8 b' Dictionary value for unknown command'
598 598 i> write(6) -> 6:
599 599 i> hello\n
600 600 o> readline() -> 4:
601 o> 384\n
602 o> readline() -> 384:
601 o> 403\n
602 o> readline() -> 403:
603 603 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
604 604
605 605 Incomplete dictionary send
@@ -680,8 +680,8 b' Send a command line with spaces'
680 680 i> write(6) -> 6:
681 681 i> hello\n
682 682 o> readline() -> 4:
683 o> 384\n
684 o> readline() -> 384:
683 o> 403\n
684 o> readline() -> 403:
685 685 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
686 686 i> write(98) -> 98:
687 687 i> between\n
@@ -714,8 +714,8 b' Send a command line with spaces'
714 714 i> write(6) -> 6:
715 715 i> hello\n
716 716 o> readline() -> 4:
717 o> 384\n
718 o> readline() -> 384:
717 o> 403\n
718 o> readline() -> 403:
719 719 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
720 720 i> write(98) -> 98:
721 721 i> between\n
@@ -757,8 +757,8 b' Send a command line with spaces'
757 757 i> write(6) -> 6:
758 758 i> hello\n
759 759 o> readline() -> 4:
760 o> 384\n
761 o> readline() -> 384:
760 o> 403\n
761 o> readline() -> 403:
762 762 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
763 763 i> write(98) -> 98:
764 764 i> between\n
@@ -768,7 +768,6 b' Send a command line with spaces'
768 768 o> 1\n
769 769 o> readline() -> 1:
770 770 o> \n
771
772 771 Send an unknown command after the "between"
773 772
774 773 $ hg debugwireproto --localssh --peer raw << EOF
@@ -787,8 +786,8 b' Send an unknown command after the "betwe'
787 786 i> write(6) -> 6:
788 787 i> hello\n
789 788 o> readline() -> 4:
790 o> 384\n
791 o> readline() -> 384:
789 o> 403\n
790 o> readline() -> 403:
792 791 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
793 792 i> write(105) -> 105:
794 793 i> between\n
@@ -828,8 +827,8 b' And one with arguments'
828 827 i> pairs 81\n
829 828 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
830 829 o> readline() -> 4:
831 o> 384\n
832 o> readline() -> 384:
830 o> 403\n
831 o> readline() -> 403:
833 832 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
834 833 o> readline() -> 2:
835 834 o> 1\n
@@ -877,8 +876,8 b' Send a valid command before the handshak'
877 876 o> readline() -> 41:
878 877 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
879 878 o> readline() -> 4:
880 o> 384\n
881 o> readline() -> 384:
879 o> 403\n
880 o> readline() -> 403:
882 881 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
883 882 o> readline() -> 2:
884 883 o> 1\n
@@ -904,7 +903,7 b" And a variation that doesn't send the be"
904 903 o> readline() -> 41:
905 904 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
906 905 o> readline() -> 4:
907 o> 384\n
906 o> 403\n
908 907
909 908 Send an upgrade request to a server that doesn't support that command
910 909
@@ -933,8 +932,8 b' Send an upgrade request to a server that'
933 932 i> pairs 81\n
934 933 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
935 934 o> readline() -> 4:
936 o> 384\n
937 o> readline() -> 384:
935 o> 403\n
936 o> readline() -> 403:
938 937 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
939 938 o> readline() -> 2:
940 939 o> 1\n
@@ -953,7 +952,7 b' Send an upgrade request to a server that'
953 952 devel-peer-request: pairs: 81 bytes
954 953 sending between command
955 954 remote: 0
956 remote: 384
955 remote: 403
957 956 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
958 957 remote: 1
959 958 url: ssh://user@dummy/server
@@ -993,8 +992,8 b' Send an upgrade request to a server that'
993 992 o> readline() -> 44:
994 993 o> upgraded this-is-some-token exp-ssh-v2-0001\n
995 994 o> readline() -> 4:
996 o> 383\n
997 o> readline() -> 384:
995 o> 402\n
996 o> readline() -> 403:
998 997 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
999 998
1000 999 $ cd ..
@@ -1062,6 +1061,7 b' Verify the peer has capabilities'
1062 1061 remote-changegroup
1063 1062 http
1064 1063 https
1064 rev-branch-cache
1065 1065
1066 1066 Command after upgrade to version 2 is processed
1067 1067
@@ -1092,14 +1092,14 b' Command after upgrade to version 2 is pr'
1092 1092 o> readline() -> 44:
1093 1093 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1094 1094 o> readline() -> 4:
1095 o> 383\n
1096 o> readline() -> 384:
1095 o> 402\n
1096 o> readline() -> 403:
1097 1097 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1098 1098 i> write(6) -> 6:
1099 1099 i> hello\n
1100 1100 o> readline() -> 4:
1101 o> 366\n
1102 o> readline() -> 366:
1101 o> 385\n
1102 o> readline() -> 385:
1103 1103 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1104 1104
1105 1105 Multiple upgrades is not allowed
@@ -1130,8 +1130,8 b' Multiple upgrades is not allowed'
1130 1130 o> readline() -> 44:
1131 1131 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1132 1132 o> readline() -> 4:
1133 o> 383\n
1134 o> readline() -> 384:
1133 o> 402\n
1134 o> readline() -> 403:
1135 1135 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1136 1136 i> write(45) -> 45:
1137 1137 i> upgrade another-token proto=irrelevant\n
@@ -1203,8 +1203,8 b' Upgrade request to unsupported protocol '
1203 1203 i> write(6) -> 6:
1204 1204 i> hello\n
1205 1205 o> readline() -> 4:
1206 o> 384\n
1207 o> readline() -> 384:
1206 o> 403\n
1207 o> readline() -> 403:
1208 1208 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1209 1209 i> write(98) -> 98:
1210 1210 i> between\n
@@ -1323,8 +1323,8 b' Test listkeys for listing namespaces'
1323 1323 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1324 1324 i> flush() -> None
1325 1325 o> readline() -> 4:
1326 o> 384\n
1327 o> readline() -> 384:
1326 o> 403\n
1327 o> readline() -> 403:
1328 1328 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1329 1329 o> readline() -> 2:
1330 1330 o> 1\n
@@ -1357,8 +1357,8 b' Test listkeys for listing namespaces'
1357 1357 o> readline() -> 62:
1358 1358 o> upgraded * exp-ssh-v2-0001\n (glob)
1359 1359 o> readline() -> 4:
1360 o> 383\n
1361 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1360 o> 402\n
1361 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1362 1362 o> read(1) -> 1:
1363 1363 o> \n
1364 1364 sending listkeys command
@@ -1403,8 +1403,8 b' With no bookmarks set'
1403 1403 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1404 1404 i> flush() -> None
1405 1405 o> readline() -> 4:
1406 o> 384\n
1407 o> readline() -> 384:
1406 o> 403\n
1407 o> readline() -> 403:
1408 1408 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1409 1409 o> readline() -> 2:
1410 1410 o> 1\n
@@ -1433,8 +1433,8 b' With no bookmarks set'
1433 1433 o> readline() -> 62:
1434 1434 o> upgraded * exp-ssh-v2-0001\n (glob)
1435 1435 o> readline() -> 4:
1436 o> 383\n
1437 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1436 o> 402\n
1437 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1438 1438 o> read(1) -> 1:
1439 1439 o> \n
1440 1440 sending listkeys command
@@ -1464,8 +1464,8 b' With a single bookmark set'
1464 1464 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1465 1465 i> flush() -> None
1466 1466 o> readline() -> 4:
1467 o> 384\n
1468 o> readline() -> 384:
1467 o> 403\n
1468 o> readline() -> 403:
1469 1469 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1470 1470 o> readline() -> 2:
1471 1471 o> 1\n
@@ -1495,8 +1495,8 b' With a single bookmark set'
1495 1495 o> readline() -> 62:
1496 1496 o> upgraded * exp-ssh-v2-0001\n (glob)
1497 1497 o> readline() -> 4:
1498 o> 383\n
1499 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1498 o> 402\n
1499 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1500 1500 o> read(1) -> 1:
1501 1501 o> \n
1502 1502 sending listkeys command
@@ -1527,8 +1527,8 b' With multiple bookmarks set'
1527 1527 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1528 1528 i> flush() -> None
1529 1529 o> readline() -> 4:
1530 o> 384\n
1531 o> readline() -> 384:
1530 o> 403\n
1531 o> readline() -> 403:
1532 1532 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1533 1533 o> readline() -> 2:
1534 1534 o> 1\n
@@ -1560,8 +1560,8 b' With multiple bookmarks set'
1560 1560 o> readline() -> 62:
1561 1561 o> upgraded * exp-ssh-v2-0001\n (glob)
1562 1562 o> readline() -> 4:
1563 o> 383\n
1564 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1563 o> 402\n
1564 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1565 1565 o> read(1) -> 1:
1566 1566 o> \n
1567 1567 sending listkeys command
@@ -1596,8 +1596,8 b' Test pushkey for bookmarks'
1596 1596 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1597 1597 i> flush() -> None
1598 1598 o> readline() -> 4:
1599 o> 384\n
1600 o> readline() -> 384:
1599 o> 403\n
1600 o> readline() -> 403:
1601 1601 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1602 1602 o> readline() -> 2:
1603 1603 o> 1\n
@@ -1636,8 +1636,8 b' Test pushkey for bookmarks'
1636 1636 o> readline() -> 62:
1637 1637 o> upgraded * exp-ssh-v2-0001\n (glob)
1638 1638 o> readline() -> 4:
1639 o> 383\n
1640 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1639 o> 402\n
1640 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1641 1641 o> read(1) -> 1:
1642 1642 o> \n
1643 1643 sending pushkey command
@@ -1688,8 +1688,8 b' Phases on empty repo'
1688 1688 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1689 1689 i> flush() -> None
1690 1690 o> readline() -> 4:
1691 o> 384\n
1692 o> readline() -> 384:
1691 o> 403\n
1692 o> readline() -> 403:
1693 1693 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1694 1694 o> readline() -> 2:
1695 1695 o> 1\n
@@ -1719,8 +1719,8 b' Phases on empty repo'
1719 1719 o> readline() -> 62:
1720 1720 o> upgraded * exp-ssh-v2-0001\n (glob)
1721 1721 o> readline() -> 4:
1722 o> 383\n
1723 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1722 o> 402\n
1723 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1724 1724 o> read(1) -> 1:
1725 1725 o> \n
1726 1726 sending listkeys command
@@ -1767,8 +1767,8 b' Two draft heads'
1767 1767 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1768 1768 i> flush() -> None
1769 1769 o> readline() -> 4:
1770 o> 384\n
1771 o> readline() -> 384:
1770 o> 403\n
1771 o> readline() -> 403:
1772 1772 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1773 1773 o> readline() -> 2:
1774 1774 o> 1\n
@@ -1801,8 +1801,8 b' Two draft heads'
1801 1801 o> readline() -> 62:
1802 1802 o> upgraded * exp-ssh-v2-0001\n (glob)
1803 1803 o> readline() -> 4:
1804 o> 383\n
1805 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1804 o> 402\n
1805 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1806 1806 o> read(1) -> 1:
1807 1807 o> \n
1808 1808 sending listkeys command
@@ -1836,8 +1836,8 b' Single draft head'
1836 1836 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1837 1837 i> flush() -> None
1838 1838 o> readline() -> 4:
1839 o> 384\n
1840 o> readline() -> 384:
1839 o> 403\n
1840 o> readline() -> 403:
1841 1841 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1842 1842 o> readline() -> 2:
1843 1843 o> 1\n
@@ -1869,8 +1869,8 b' Single draft head'
1869 1869 o> readline() -> 62:
1870 1870 o> upgraded * exp-ssh-v2-0001\n (glob)
1871 1871 o> readline() -> 4:
1872 o> 383\n
1873 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1872 o> 402\n
1873 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1874 1874 o> read(1) -> 1:
1875 1875 o> \n
1876 1876 sending listkeys command
@@ -1903,8 +1903,8 b' All public heads'
1903 1903 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1904 1904 i> flush() -> None
1905 1905 o> readline() -> 4:
1906 o> 384\n
1907 o> readline() -> 384:
1906 o> 403\n
1907 o> readline() -> 403:
1908 1908 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1909 1909 o> readline() -> 2:
1910 1910 o> 1\n
@@ -1934,8 +1934,8 b' All public heads'
1934 1934 o> readline() -> 62:
1935 1935 o> upgraded * exp-ssh-v2-0001\n (glob)
1936 1936 o> readline() -> 4:
1937 o> 383\n
1938 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1937 o> 402\n
1938 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1939 1939 o> read(1) -> 1:
1940 1940 o> \n
1941 1941 sending listkeys command
@@ -1970,8 +1970,8 b' Setting public phase via pushkey'
1970 1970 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1971 1971 i> flush() -> None
1972 1972 o> readline() -> 4:
1973 o> 384\n
1974 o> readline() -> 384:
1973 o> 403\n
1974 o> readline() -> 403:
1975 1975 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1976 1976 o> readline() -> 2:
1977 1977 o> 1\n
@@ -2011,8 +2011,8 b' Setting public phase via pushkey'
2011 2011 o> readline() -> 62:
2012 2012 o> upgraded * exp-ssh-v2-0001\n (glob)
2013 2013 o> readline() -> 4:
2014 o> 383\n
2015 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2014 o> 402\n
2015 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2016 2016 o> read(1) -> 1:
2017 2017 o> \n
2018 2018 sending pushkey command
@@ -2077,8 +2077,8 b' Test batching of requests'
2077 2077 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
2078 2078 i> flush() -> None
2079 2079 o> readline() -> 4:
2080 o> 384\n
2081 o> readline() -> 384:
2080 o> 403\n
2081 o> readline() -> 403:
2082 2082 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
2083 2083 o> readline() -> 2:
2084 2084 o> 1\n
@@ -2117,8 +2117,8 b' Test batching of requests'
2117 2117 o> readline() -> 62:
2118 2118 o> upgraded * exp-ssh-v2-0001\n (glob)
2119 2119 o> readline() -> 4:
2120 o> 383\n
2121 o> read(383) -> 383: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2120 o> 402\n
2121 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
2122 2122 o> read(1) -> 1:
2123 2123 o> \n
2124 2124 sending batch with 3 sub-commands
@@ -496,7 +496,7 b' debug output'
496 496 devel-peer-request: between
497 497 devel-peer-request: pairs: 81 bytes
498 498 sending between command
499 remote: 384 (sshv1 !)
499 remote: 403 (sshv1 !)
500 500 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
501 501 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
502 502 remote: 1 (sshv1 !)
@@ -512,7 +512,7 b' debug output'
512 512 no changes found
513 513 devel-peer-request: getbundle
514 514 devel-peer-request: bookmarks: 1 bytes
515 devel-peer-request: bundlecaps: 247 bytes
515 devel-peer-request: bundlecaps: 266 bytes
516 516 devel-peer-request: cg: 1 bytes
517 517 devel-peer-request: common: 122 bytes
518 518 devel-peer-request: heads: 122 bytes
@@ -222,6 +222,8 b' List of files accessed over HTTP:'
222 222 /.hg/bookmarks
223 223 /.hg/bookmarks.current
224 224 /.hg/cache/hgtagsfnodes1
225 /.hg/cache/rbc-names-v1
226 /.hg/cache/rbc-revs-v1
225 227 /.hg/requires
226 228 /.hg/store/00changelog.i
227 229 /.hg/store/00manifest.i
@@ -234,6 +236,8 b' List of files accessed over HTTP:'
234 236 /remote-with-names/.hg/bookmarks.current
235 237 /remote-with-names/.hg/cache/branch2-served
236 238 /remote-with-names/.hg/cache/hgtagsfnodes1
239 /remote-with-names/.hg/cache/rbc-names-v1
240 /remote-with-names/.hg/cache/rbc-revs-v1
237 241 /remote-with-names/.hg/cache/tags2-served
238 242 /remote-with-names/.hg/localtags
239 243 /remote-with-names/.hg/requires
@@ -248,6 +252,7 b' List of files accessed over HTTP:'
248 252 /remote/.hg/cache/branch2-served
249 253 /remote/.hg/cache/hgtagsfnodes1
250 254 /remote/.hg/cache/rbc-names-v1
255 /remote/.hg/cache/rbc-revs-v1
251 256 /remote/.hg/cache/tags2-served
252 257 /remote/.hg/localtags
253 258 /remote/.hg/requires
@@ -265,6 +270,8 b' List of files accessed over HTTP:'
265 270 /sub/.hg/bookmarks
266 271 /sub/.hg/bookmarks.current
267 272 /sub/.hg/cache/hgtagsfnodes1
273 /sub/.hg/cache/rbc-names-v1
274 /sub/.hg/cache/rbc-revs-v1
268 275 /sub/.hg/requires
269 276 /sub/.hg/store/00changelog.i
270 277 /sub/.hg/store/00manifest.i
@@ -681,6 +681,8 b' Missing tags2* files means the cache was'
681 681 checklink (symlink !)
682 682 checklink-target (symlink !)
683 683 hgtagsfnodes1
684 rbc-names-v1
685 rbc-revs-v1
684 686
685 687 Cache should contain the head only, even though other nodes have tags data
686 688
@@ -706,6 +708,8 b' Running hg tags should produce tags2* fi'
706 708 checklink (symlink !)
707 709 checklink-target (symlink !)
708 710 hgtagsfnodes1
711 rbc-names-v1
712 rbc-revs-v1
709 713 tags2-visible
710 714
711 715 $ f --size --hexdump tagsclient/.hg/cache/hgtagsfnodes1
General Comments 0
You need to be logged in to leave comments. Login now