##// END OF EJS Templates
push: include a 'check:bookmarks' part when possible...
Boris Feld -
r35260:ad5f2b92 default
parent child Browse files
Show More
@@ -1475,6 +1475,7 b' class seekableunbundlepart(unbundlepart)'
1475 1475 # These are only the static capabilities.
1476 1476 # Check the 'getrepocaps' function for the rest.
1477 1477 capabilities = {'HG20': (),
1478 'bookmarks': (),
1478 1479 'error': ('abort', 'unsupportedcontent', 'pushraced',
1479 1480 'pushkey'),
1480 1481 'listkeys': (),
@@ -13,6 +13,7 b' import hashlib'
13 13
14 14 from .i18n import _
15 15 from .node import (
16 bin,
16 17 hex,
17 18 nullid,
18 19 )
@@ -743,6 +744,22 b' def _pushing(pushop):'
743 744 or pushop.outobsmarkers
744 745 or pushop.outbookmarks)
745 746
747 @b2partsgenerator('check-bookmarks')
748 def _pushb2checkbookmarks(pushop, bundler):
749 """insert bookmark move checking"""
750 if not _pushing(pushop) or pushop.force:
751 return
752 b2caps = bundle2.bundle2caps(pushop.remote)
753 hasbookmarkcheck = 'bookmarks' in b2caps
754 if not (pushop.outbookmarks and hasbookmarkcheck):
755 return
756 data = []
757 for book, old, new in pushop.outbookmarks:
758 old = bin(old)
759 data.append((book, old))
760 checkdata = bookmod.binaryencode(data)
761 bundler.newpart('check:bookmarks', data=checkdata)
762
746 763 @b2partsgenerator('check-phases')
747 764 def _pushb2checkphases(pushop, bundler):
748 765 """insert phase move checking"""
@@ -8,6 +8,7 b' substitutions = ['
8 8 ),
9 9 # capabilities sent through http
10 10 (br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
11 br'bookmarks%250A'
11 12 br'changegroup%253D01%252C02%250A'
12 13 br'digests%253Dmd5%252Csha1%252Csha512%250A'
13 14 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A'
@@ -21,6 +22,7 b' substitutions = ['
21 22 ),
22 23 # bundle2 capabilities sent through ssh
23 24 (br'bundle2=HG20%0A'
25 br'bookmarks%0A'
24 26 br'changegroup%3D01%2C02%0A'
25 27 br'digests%3Dmd5%2Csha1%2Csha512%0A'
26 28 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
@@ -93,14 +93,14 b' Extension disabled for lack of a hook'
93 93 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
94 94 911600dab2ae7a9baff75958b84fe606851ce955
95 95 bundle2-output-bundle: "HG20", 5 parts total
96 bundle2-output-part: "replycaps" 168 bytes payload
96 bundle2-output-part: "replycaps" 178 bytes payload
97 97 bundle2-output-part: "check:phases" 24 bytes payload
98 98 bundle2-output-part: "check:heads" streamed payload
99 99 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
100 100 bundle2-output-part: "phase-heads" 24 bytes payload
101 101 bundle2-input-bundle: with-transaction
102 102 bundle2-input-part: "replycaps" supported
103 bundle2-input-part: total payload size 168
103 bundle2-input-part: total payload size 178
104 104 bundle2-input-part: "check:phases" supported
105 105 bundle2-input-part: total payload size 24
106 106 bundle2-input-part: "check:heads" supported
@@ -156,14 +156,14 b' Extension disabled for lack of acl.sourc'
156 156 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
157 157 911600dab2ae7a9baff75958b84fe606851ce955
158 158 bundle2-output-bundle: "HG20", 5 parts total
159 bundle2-output-part: "replycaps" 168 bytes payload
159 bundle2-output-part: "replycaps" 178 bytes payload
160 160 bundle2-output-part: "check:phases" 24 bytes payload
161 161 bundle2-output-part: "check:heads" streamed payload
162 162 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
163 163 bundle2-output-part: "phase-heads" 24 bytes payload
164 164 bundle2-input-bundle: with-transaction
165 165 bundle2-input-part: "replycaps" supported
166 bundle2-input-part: total payload size 168
166 bundle2-input-part: total payload size 178
167 167 bundle2-input-part: "check:phases" supported
168 168 bundle2-input-part: total payload size 24
169 169 bundle2-input-part: "check:heads" supported
@@ -222,14 +222,14 b' No [acl.allow]/[acl.deny]'
222 222 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
223 223 911600dab2ae7a9baff75958b84fe606851ce955
224 224 bundle2-output-bundle: "HG20", 5 parts total
225 bundle2-output-part: "replycaps" 168 bytes payload
225 bundle2-output-part: "replycaps" 178 bytes payload
226 226 bundle2-output-part: "check:phases" 24 bytes payload
227 227 bundle2-output-part: "check:heads" streamed payload
228 228 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
229 229 bundle2-output-part: "phase-heads" 24 bytes payload
230 230 bundle2-input-bundle: with-transaction
231 231 bundle2-input-part: "replycaps" supported
232 bundle2-input-part: total payload size 168
232 bundle2-input-part: total payload size 178
233 233 bundle2-input-part: "check:phases" supported
234 234 bundle2-input-part: total payload size 24
235 235 bundle2-input-part: "check:heads" supported
@@ -298,14 +298,14 b' Empty [acl.allow]'
298 298 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
299 299 911600dab2ae7a9baff75958b84fe606851ce955
300 300 bundle2-output-bundle: "HG20", 5 parts total
301 bundle2-output-part: "replycaps" 168 bytes payload
301 bundle2-output-part: "replycaps" 178 bytes payload
302 302 bundle2-output-part: "check:phases" 24 bytes payload
303 303 bundle2-output-part: "check:heads" streamed payload
304 304 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
305 305 bundle2-output-part: "phase-heads" 24 bytes payload
306 306 bundle2-input-bundle: with-transaction
307 307 bundle2-input-part: "replycaps" supported
308 bundle2-input-part: total payload size 168
308 bundle2-input-part: total payload size 178
309 309 bundle2-input-part: "check:phases" supported
310 310 bundle2-input-part: total payload size 24
311 311 bundle2-input-part: "check:heads" supported
@@ -366,14 +366,14 b' fred is allowed inside foo/'
366 366 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
367 367 911600dab2ae7a9baff75958b84fe606851ce955
368 368 bundle2-output-bundle: "HG20", 5 parts total
369 bundle2-output-part: "replycaps" 168 bytes payload
369 bundle2-output-part: "replycaps" 178 bytes payload
370 370 bundle2-output-part: "check:phases" 24 bytes payload
371 371 bundle2-output-part: "check:heads" streamed payload
372 372 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
373 373 bundle2-output-part: "phase-heads" 24 bytes payload
374 374 bundle2-input-bundle: with-transaction
375 375 bundle2-input-part: "replycaps" supported
376 bundle2-input-part: total payload size 168
376 bundle2-input-part: total payload size 178
377 377 bundle2-input-part: "check:phases" supported
378 378 bundle2-input-part: total payload size 24
379 379 bundle2-input-part: "check:heads" supported
@@ -439,14 +439,14 b' Empty [acl.deny]'
439 439 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
440 440 911600dab2ae7a9baff75958b84fe606851ce955
441 441 bundle2-output-bundle: "HG20", 5 parts total
442 bundle2-output-part: "replycaps" 168 bytes payload
442 bundle2-output-part: "replycaps" 178 bytes payload
443 443 bundle2-output-part: "check:phases" 24 bytes payload
444 444 bundle2-output-part: "check:heads" streamed payload
445 445 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
446 446 bundle2-output-part: "phase-heads" 24 bytes payload
447 447 bundle2-input-bundle: with-transaction
448 448 bundle2-input-part: "replycaps" supported
449 bundle2-input-part: total payload size 168
449 bundle2-input-part: total payload size 178
450 450 bundle2-input-part: "check:phases" supported
451 451 bundle2-input-part: total payload size 24
452 452 bundle2-input-part: "check:heads" supported
@@ -509,14 +509,14 b' fred is allowed inside foo/, but not foo'
509 509 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
510 510 911600dab2ae7a9baff75958b84fe606851ce955
511 511 bundle2-output-bundle: "HG20", 5 parts total
512 bundle2-output-part: "replycaps" 168 bytes payload
512 bundle2-output-part: "replycaps" 178 bytes payload
513 513 bundle2-output-part: "check:phases" 24 bytes payload
514 514 bundle2-output-part: "check:heads" streamed payload
515 515 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
516 516 bundle2-output-part: "phase-heads" 24 bytes payload
517 517 bundle2-input-bundle: with-transaction
518 518 bundle2-input-part: "replycaps" supported
519 bundle2-input-part: total payload size 168
519 bundle2-input-part: total payload size 178
520 520 bundle2-input-part: "check:phases" supported
521 521 bundle2-input-part: total payload size 24
522 522 bundle2-input-part: "check:heads" supported
@@ -584,14 +584,14 b' fred is allowed inside foo/, but not foo'
584 584 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
585 585 911600dab2ae7a9baff75958b84fe606851ce955
586 586 bundle2-output-bundle: "HG20", 5 parts total
587 bundle2-output-part: "replycaps" 168 bytes payload
587 bundle2-output-part: "replycaps" 178 bytes payload
588 588 bundle2-output-part: "check:phases" 24 bytes payload
589 589 bundle2-output-part: "check:heads" streamed payload
590 590 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
591 591 bundle2-output-part: "phase-heads" 24 bytes payload
592 592 bundle2-input-bundle: with-transaction
593 593 bundle2-input-part: "replycaps" supported
594 bundle2-input-part: total payload size 168
594 bundle2-input-part: total payload size 178
595 595 bundle2-input-part: "check:phases" supported
596 596 bundle2-input-part: total payload size 24
597 597 bundle2-input-part: "check:heads" supported
@@ -656,14 +656,14 b' fred is allowed inside foo/, but not foo'
656 656 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
657 657 911600dab2ae7a9baff75958b84fe606851ce955
658 658 bundle2-output-bundle: "HG20", 5 parts total
659 bundle2-output-part: "replycaps" 168 bytes payload
659 bundle2-output-part: "replycaps" 178 bytes payload
660 660 bundle2-output-part: "check:phases" 24 bytes payload
661 661 bundle2-output-part: "check:heads" streamed payload
662 662 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
663 663 bundle2-output-part: "phase-heads" 24 bytes payload
664 664 bundle2-input-bundle: with-transaction
665 665 bundle2-input-part: "replycaps" supported
666 bundle2-input-part: total payload size 168
666 bundle2-input-part: total payload size 178
667 667 bundle2-input-part: "check:phases" supported
668 668 bundle2-input-part: total payload size 24
669 669 bundle2-input-part: "check:heads" supported
@@ -730,14 +730,14 b' barney is allowed everywhere'
730 730 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
731 731 911600dab2ae7a9baff75958b84fe606851ce955
732 732 bundle2-output-bundle: "HG20", 5 parts total
733 bundle2-output-part: "replycaps" 168 bytes payload
733 bundle2-output-part: "replycaps" 178 bytes payload
734 734 bundle2-output-part: "check:phases" 24 bytes payload
735 735 bundle2-output-part: "check:heads" streamed payload
736 736 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
737 737 bundle2-output-part: "phase-heads" 24 bytes payload
738 738 bundle2-input-bundle: with-transaction
739 739 bundle2-input-part: "replycaps" supported
740 bundle2-input-part: total payload size 168
740 bundle2-input-part: total payload size 178
741 741 bundle2-input-part: "check:phases" supported
742 742 bundle2-input-part: total payload size 24
743 743 bundle2-input-part: "check:heads" supported
@@ -813,14 +813,14 b' wilma can change files with a .txt exten'
813 813 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
814 814 911600dab2ae7a9baff75958b84fe606851ce955
815 815 bundle2-output-bundle: "HG20", 5 parts total
816 bundle2-output-part: "replycaps" 168 bytes payload
816 bundle2-output-part: "replycaps" 178 bytes payload
817 817 bundle2-output-part: "check:phases" 24 bytes payload
818 818 bundle2-output-part: "check:heads" streamed payload
819 819 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
820 820 bundle2-output-part: "phase-heads" 24 bytes payload
821 821 bundle2-input-bundle: with-transaction
822 822 bundle2-input-part: "replycaps" supported
823 bundle2-input-part: total payload size 168
823 bundle2-input-part: total payload size 178
824 824 bundle2-input-part: "check:phases" supported
825 825 bundle2-input-part: total payload size 24
826 826 bundle2-input-part: "check:heads" supported
@@ -894,14 +894,14 b' file specified by acl.config does not ex'
894 894 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
895 895 911600dab2ae7a9baff75958b84fe606851ce955
896 896 bundle2-output-bundle: "HG20", 5 parts total
897 bundle2-output-part: "replycaps" 168 bytes payload
897 bundle2-output-part: "replycaps" 178 bytes payload
898 898 bundle2-output-part: "check:phases" 24 bytes payload
899 899 bundle2-output-part: "check:heads" streamed payload
900 900 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
901 901 bundle2-output-part: "phase-heads" 24 bytes payload
902 902 bundle2-input-bundle: with-transaction
903 903 bundle2-input-part: "replycaps" supported
904 bundle2-input-part: total payload size 168
904 bundle2-input-part: total payload size 178
905 905 bundle2-input-part: "check:phases" supported
906 906 bundle2-input-part: total payload size 24
907 907 bundle2-input-part: "check:heads" supported
@@ -970,14 +970,14 b' betty is allowed inside foo/ by a acl.co'
970 970 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
971 971 911600dab2ae7a9baff75958b84fe606851ce955
972 972 bundle2-output-bundle: "HG20", 5 parts total
973 bundle2-output-part: "replycaps" 168 bytes payload
973 bundle2-output-part: "replycaps" 178 bytes payload
974 974 bundle2-output-part: "check:phases" 24 bytes payload
975 975 bundle2-output-part: "check:heads" streamed payload
976 976 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
977 977 bundle2-output-part: "phase-heads" 24 bytes payload
978 978 bundle2-input-bundle: with-transaction
979 979 bundle2-input-part: "replycaps" supported
980 bundle2-input-part: total payload size 168
980 bundle2-input-part: total payload size 178
981 981 bundle2-input-part: "check:phases" supported
982 982 bundle2-input-part: total payload size 24
983 983 bundle2-input-part: "check:heads" supported
@@ -1057,14 +1057,14 b' acl.config can set only [acl.allow]/[acl'
1057 1057 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1058 1058 911600dab2ae7a9baff75958b84fe606851ce955
1059 1059 bundle2-output-bundle: "HG20", 5 parts total
1060 bundle2-output-part: "replycaps" 168 bytes payload
1060 bundle2-output-part: "replycaps" 178 bytes payload
1061 1061 bundle2-output-part: "check:phases" 24 bytes payload
1062 1062 bundle2-output-part: "check:heads" streamed payload
1063 1063 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1064 1064 bundle2-output-part: "phase-heads" 24 bytes payload
1065 1065 bundle2-input-bundle: with-transaction
1066 1066 bundle2-input-part: "replycaps" supported
1067 bundle2-input-part: total payload size 168
1067 bundle2-input-part: total payload size 178
1068 1068 bundle2-input-part: "check:phases" supported
1069 1069 bundle2-input-part: total payload size 24
1070 1070 bundle2-input-part: "check:heads" supported
@@ -1143,14 +1143,14 b' fred is always allowed'
1143 1143 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1144 1144 911600dab2ae7a9baff75958b84fe606851ce955
1145 1145 bundle2-output-bundle: "HG20", 5 parts total
1146 bundle2-output-part: "replycaps" 168 bytes payload
1146 bundle2-output-part: "replycaps" 178 bytes payload
1147 1147 bundle2-output-part: "check:phases" 24 bytes payload
1148 1148 bundle2-output-part: "check:heads" streamed payload
1149 1149 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1150 1150 bundle2-output-part: "phase-heads" 24 bytes payload
1151 1151 bundle2-input-bundle: with-transaction
1152 1152 bundle2-input-part: "replycaps" supported
1153 bundle2-input-part: total payload size 168
1153 bundle2-input-part: total payload size 178
1154 1154 bundle2-input-part: "check:phases" supported
1155 1155 bundle2-input-part: total payload size 24
1156 1156 bundle2-input-part: "check:heads" supported
@@ -1225,14 +1225,14 b' no one is allowed inside foo/Bar/'
1225 1225 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1226 1226 911600dab2ae7a9baff75958b84fe606851ce955
1227 1227 bundle2-output-bundle: "HG20", 5 parts total
1228 bundle2-output-part: "replycaps" 168 bytes payload
1228 bundle2-output-part: "replycaps" 178 bytes payload
1229 1229 bundle2-output-part: "check:phases" 24 bytes payload
1230 1230 bundle2-output-part: "check:heads" streamed payload
1231 1231 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1232 1232 bundle2-output-part: "phase-heads" 24 bytes payload
1233 1233 bundle2-input-bundle: with-transaction
1234 1234 bundle2-input-part: "replycaps" supported
1235 bundle2-input-part: total payload size 168
1235 bundle2-input-part: total payload size 178
1236 1236 bundle2-input-part: "check:phases" supported
1237 1237 bundle2-input-part: total payload size 24
1238 1238 bundle2-input-part: "check:heads" supported
@@ -1304,14 +1304,14 b' OS-level groups'
1304 1304 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1305 1305 911600dab2ae7a9baff75958b84fe606851ce955
1306 1306 bundle2-output-bundle: "HG20", 5 parts total
1307 bundle2-output-part: "replycaps" 168 bytes payload
1307 bundle2-output-part: "replycaps" 178 bytes payload
1308 1308 bundle2-output-part: "check:phases" 24 bytes payload
1309 1309 bundle2-output-part: "check:heads" streamed payload
1310 1310 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1311 1311 bundle2-output-part: "phase-heads" 24 bytes payload
1312 1312 bundle2-input-bundle: with-transaction
1313 1313 bundle2-input-part: "replycaps" supported
1314 bundle2-input-part: total payload size 168
1314 bundle2-input-part: total payload size 178
1315 1315 bundle2-input-part: "check:phases" supported
1316 1316 bundle2-input-part: total payload size 24
1317 1317 bundle2-input-part: "check:heads" supported
@@ -1387,14 +1387,14 b' OS-level groups'
1387 1387 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1388 1388 911600dab2ae7a9baff75958b84fe606851ce955
1389 1389 bundle2-output-bundle: "HG20", 5 parts total
1390 bundle2-output-part: "replycaps" 168 bytes payload
1390 bundle2-output-part: "replycaps" 178 bytes payload
1391 1391 bundle2-output-part: "check:phases" 24 bytes payload
1392 1392 bundle2-output-part: "check:heads" streamed payload
1393 1393 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1394 1394 bundle2-output-part: "phase-heads" 24 bytes payload
1395 1395 bundle2-input-bundle: with-transaction
1396 1396 bundle2-input-part: "replycaps" supported
1397 bundle2-input-part: total payload size 168
1397 bundle2-input-part: total payload size 178
1398 1398 bundle2-input-part: "check:phases" supported
1399 1399 bundle2-input-part: total payload size 24
1400 1400 bundle2-input-part: "check:heads" supported
@@ -1507,14 +1507,14 b' No branch acls specified'
1507 1507 911600dab2ae7a9baff75958b84fe606851ce955
1508 1508 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1509 1509 bundle2-output-bundle: "HG20", 5 parts total
1510 bundle2-output-part: "replycaps" 168 bytes payload
1510 bundle2-output-part: "replycaps" 178 bytes payload
1511 1511 bundle2-output-part: "check:phases" 48 bytes payload
1512 1512 bundle2-output-part: "check:heads" streamed payload
1513 1513 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1514 1514 bundle2-output-part: "phase-heads" 48 bytes payload
1515 1515 bundle2-input-bundle: with-transaction
1516 1516 bundle2-input-part: "replycaps" supported
1517 bundle2-input-part: total payload size 168
1517 bundle2-input-part: total payload size 178
1518 1518 bundle2-input-part: "check:phases" supported
1519 1519 bundle2-input-part: total payload size 48
1520 1520 bundle2-input-part: "check:heads" supported
@@ -1591,14 +1591,14 b' Branch acl deny test'
1591 1591 911600dab2ae7a9baff75958b84fe606851ce955
1592 1592 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1593 1593 bundle2-output-bundle: "HG20", 5 parts total
1594 bundle2-output-part: "replycaps" 168 bytes payload
1594 bundle2-output-part: "replycaps" 178 bytes payload
1595 1595 bundle2-output-part: "check:phases" 48 bytes payload
1596 1596 bundle2-output-part: "check:heads" streamed payload
1597 1597 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1598 1598 bundle2-output-part: "phase-heads" 48 bytes payload
1599 1599 bundle2-input-bundle: with-transaction
1600 1600 bundle2-input-part: "replycaps" supported
1601 bundle2-input-part: total payload size 168
1601 bundle2-input-part: total payload size 178
1602 1602 bundle2-input-part: "check:phases" supported
1603 1603 bundle2-input-part: total payload size 48
1604 1604 bundle2-input-part: "check:heads" supported
@@ -1668,14 +1668,14 b' Branch acl empty allow test'
1668 1668 911600dab2ae7a9baff75958b84fe606851ce955
1669 1669 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1670 1670 bundle2-output-bundle: "HG20", 5 parts total
1671 bundle2-output-part: "replycaps" 168 bytes payload
1671 bundle2-output-part: "replycaps" 178 bytes payload
1672 1672 bundle2-output-part: "check:phases" 48 bytes payload
1673 1673 bundle2-output-part: "check:heads" streamed payload
1674 1674 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1675 1675 bundle2-output-part: "phase-heads" 48 bytes payload
1676 1676 bundle2-input-bundle: with-transaction
1677 1677 bundle2-input-part: "replycaps" supported
1678 bundle2-input-part: total payload size 168
1678 bundle2-input-part: total payload size 178
1679 1679 bundle2-input-part: "check:phases" supported
1680 1680 bundle2-input-part: total payload size 48
1681 1681 bundle2-input-part: "check:heads" supported
@@ -1741,14 +1741,14 b' Branch acl allow other'
1741 1741 911600dab2ae7a9baff75958b84fe606851ce955
1742 1742 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1743 1743 bundle2-output-bundle: "HG20", 5 parts total
1744 bundle2-output-part: "replycaps" 168 bytes payload
1744 bundle2-output-part: "replycaps" 178 bytes payload
1745 1745 bundle2-output-part: "check:phases" 48 bytes payload
1746 1746 bundle2-output-part: "check:heads" streamed payload
1747 1747 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1748 1748 bundle2-output-part: "phase-heads" 48 bytes payload
1749 1749 bundle2-input-bundle: with-transaction
1750 1750 bundle2-input-part: "replycaps" supported
1751 bundle2-input-part: total payload size 168
1751 bundle2-input-part: total payload size 178
1752 1752 bundle2-input-part: "check:phases" supported
1753 1753 bundle2-input-part: total payload size 48
1754 1754 bundle2-input-part: "check:heads" supported
@@ -1808,14 +1808,14 b' Branch acl allow other'
1808 1808 911600dab2ae7a9baff75958b84fe606851ce955
1809 1809 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1810 1810 bundle2-output-bundle: "HG20", 5 parts total
1811 bundle2-output-part: "replycaps" 168 bytes payload
1811 bundle2-output-part: "replycaps" 178 bytes payload
1812 1812 bundle2-output-part: "check:phases" 48 bytes payload
1813 1813 bundle2-output-part: "check:heads" streamed payload
1814 1814 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1815 1815 bundle2-output-part: "phase-heads" 48 bytes payload
1816 1816 bundle2-input-bundle: with-transaction
1817 1817 bundle2-input-part: "replycaps" supported
1818 bundle2-input-part: total payload size 168
1818 bundle2-input-part: total payload size 178
1819 1819 bundle2-input-part: "check:phases" supported
1820 1820 bundle2-input-part: total payload size 48
1821 1821 bundle2-input-part: "check:heads" supported
@@ -1897,14 +1897,14 b' push foobar into the remote'
1897 1897 911600dab2ae7a9baff75958b84fe606851ce955
1898 1898 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1899 1899 bundle2-output-bundle: "HG20", 5 parts total
1900 bundle2-output-part: "replycaps" 168 bytes payload
1900 bundle2-output-part: "replycaps" 178 bytes payload
1901 1901 bundle2-output-part: "check:phases" 48 bytes payload
1902 1902 bundle2-output-part: "check:heads" streamed payload
1903 1903 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1904 1904 bundle2-output-part: "phase-heads" 48 bytes payload
1905 1905 bundle2-input-bundle: with-transaction
1906 1906 bundle2-input-part: "replycaps" supported
1907 bundle2-input-part: total payload size 168
1907 bundle2-input-part: total payload size 178
1908 1908 bundle2-input-part: "check:phases" supported
1909 1909 bundle2-input-part: total payload size 48
1910 1910 bundle2-input-part: "check:heads" supported
@@ -1985,14 +1985,14 b' Branch acl conflicting deny'
1985 1985 911600dab2ae7a9baff75958b84fe606851ce955
1986 1986 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1987 1987 bundle2-output-bundle: "HG20", 5 parts total
1988 bundle2-output-part: "replycaps" 168 bytes payload
1988 bundle2-output-part: "replycaps" 178 bytes payload
1989 1989 bundle2-output-part: "check:phases" 48 bytes payload
1990 1990 bundle2-output-part: "check:heads" streamed payload
1991 1991 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1992 1992 bundle2-output-part: "phase-heads" 48 bytes payload
1993 1993 bundle2-input-bundle: with-transaction
1994 1994 bundle2-input-part: "replycaps" supported
1995 bundle2-input-part: total payload size 168
1995 bundle2-input-part: total payload size 178
1996 1996 bundle2-input-part: "check:phases" supported
1997 1997 bundle2-input-part: total payload size 48
1998 1998 bundle2-input-part: "check:heads" supported
@@ -2057,14 +2057,14 b" User 'astro' must not be denied"
2057 2057 911600dab2ae7a9baff75958b84fe606851ce955
2058 2058 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
2059 2059 bundle2-output-bundle: "HG20", 5 parts total
2060 bundle2-output-part: "replycaps" 168 bytes payload
2060 bundle2-output-part: "replycaps" 178 bytes payload
2061 2061 bundle2-output-part: "check:phases" 48 bytes payload
2062 2062 bundle2-output-part: "check:heads" streamed payload
2063 2063 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2064 2064 bundle2-output-part: "phase-heads" 48 bytes payload
2065 2065 bundle2-input-bundle: with-transaction
2066 2066 bundle2-input-part: "replycaps" supported
2067 bundle2-input-part: total payload size 168
2067 bundle2-input-part: total payload size 178
2068 2068 bundle2-input-part: "check:phases" supported
2069 2069 bundle2-input-part: total payload size 48
2070 2070 bundle2-input-part: "check:heads" supported
@@ -2139,14 +2139,14 b' Non-astro users must be denied'
2139 2139 911600dab2ae7a9baff75958b84fe606851ce955
2140 2140 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
2141 2141 bundle2-output-bundle: "HG20", 5 parts total
2142 bundle2-output-part: "replycaps" 168 bytes payload
2142 bundle2-output-part: "replycaps" 178 bytes payload
2143 2143 bundle2-output-part: "check:phases" 48 bytes payload
2144 2144 bundle2-output-part: "check:heads" streamed payload
2145 2145 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2146 2146 bundle2-output-part: "phase-heads" 48 bytes payload
2147 2147 bundle2-input-bundle: with-transaction
2148 2148 bundle2-input-part: "replycaps" supported
2149 bundle2-input-part: total payload size 168
2149 bundle2-input-part: total payload size 178
2150 2150 bundle2-input-part: "check:phases" supported
2151 2151 bundle2-input-part: total payload size 48
2152 2152 bundle2-input-part: "check:heads" supported
@@ -112,25 +112,31 b' delete a remote bookmark'
112 112 checking for updated bookmarks
113 113 listing keys for "bookmarks"
114 114 no changes found
115 bundle2-output-bundle: "HG20", 3 parts total
115 bundle2-output-bundle: "HG20", 4 parts total
116 116 bundle2-output: start emission of HG20 stream
117 117 bundle2-output: bundle parameter:
118 118 bundle2-output: start of parts
119 119 bundle2-output: bundle part: "replycaps"
120 bundle2-output-part: "replycaps" 185 bytes payload
120 bundle2-output-part: "replycaps" 195 bytes payload
121 121 bundle2-output: part 0: "REPLYCAPS"
122 122 bundle2-output: header chunk size: 16
123 bundle2-output: payload chunk size: 185
123 bundle2-output: payload chunk size: 195
124 bundle2-output: closing payload chunk
125 bundle2-output: bundle part: "check:bookmarks"
126 bundle2-output-part: "check:bookmarks" 23 bytes payload
127 bundle2-output: part 1: "CHECK:BOOKMARKS"
128 bundle2-output: header chunk size: 22
129 bundle2-output: payload chunk size: 23
124 130 bundle2-output: closing payload chunk
125 131 bundle2-output: bundle part: "check:phases"
126 132 bundle2-output-part: "check:phases" 48 bytes payload
127 bundle2-output: part 1: "CHECK:PHASES"
133 bundle2-output: part 2: "CHECK:PHASES"
128 134 bundle2-output: header chunk size: 19
129 135 bundle2-output: payload chunk size: 48
130 136 bundle2-output: closing payload chunk
131 137 bundle2-output: bundle part: "pushkey"
132 138 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
133 bundle2-output: part 2: "PUSHKEY"
139 bundle2-output: part 3: "PUSHKEY"
134 140 bundle2-output: header chunk size: 90
135 141 bundle2-output: closing payload chunk
136 142 bundle2-output: end of bundle
@@ -144,12 +150,21 b' delete a remote bookmark'
144 150 bundle2-input: part parameters: 0
145 151 bundle2-input: found a handler for part replycaps
146 152 bundle2-input-part: "replycaps" supported
147 bundle2-input: payload chunk size: 185
153 bundle2-input: payload chunk size: 195
148 154 bundle2-input: payload chunk size: 0
149 bundle2-input-part: total payload size 185
155 bundle2-input-part: total payload size 195
156 bundle2-input: part header size: 22
157 bundle2-input: part type: "CHECK:BOOKMARKS"
158 bundle2-input: part id: "1"
159 bundle2-input: part parameters: 0
160 bundle2-input: found a handler for part check:bookmarks
161 bundle2-input-part: "check:bookmarks" supported
162 bundle2-input: payload chunk size: 23
163 bundle2-input: payload chunk size: 0
164 bundle2-input-part: total payload size 23
150 165 bundle2-input: part header size: 19
151 166 bundle2-input: part type: "CHECK:PHASES"
152 bundle2-input: part id: "1"
167 bundle2-input: part id: "2"
153 168 bundle2-input: part parameters: 0
154 169 bundle2-input: found a handler for part check:phases
155 170 bundle2-input-part: "check:phases" supported
@@ -158,7 +173,7 b' delete a remote bookmark'
158 173 bundle2-input-part: total payload size 48
159 174 bundle2-input: part header size: 90
160 175 bundle2-input: part type: "PUSHKEY"
161 bundle2-input: part id: "2"
176 bundle2-input: part id: "3"
162 177 bundle2-input: part parameters: 4
163 178 bundle2-input: found a handler for part pushkey
164 179 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
@@ -166,7 +181,7 b' delete a remote bookmark'
166 181 bundle2-input: payload chunk size: 0
167 182 bundle2-input: part header size: 0
168 183 bundle2-input: end of bundle2 stream
169 bundle2-input-bundle: 2 parts total
184 bundle2-input-bundle: 3 parts total
170 185 running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh
171 186 test-hook-bookmark: W: 0000000000000000000000000000000000000000 ->
172 187 bundle2-output-bundle: "HG20", 1 parts total
@@ -204,6 +204,7 b' Test debugcapabilities command:'
204 204 unbundle
205 205 Bundle2 capabilities:
206 206 HG20
207 bookmarks
207 208 changegroup
208 209 01
209 210 02
@@ -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: Fri, 14 Apr 2017 00:00:00 GMT\r\n
120 120 write(41) -> Content-Type: application/mercurial-0.1\r\n
121 write(21) -> Content-Length: 405\r\n
121 write(21) -> Content-Length: 417\r\n
122 122 write(2) -> \r\n
123 write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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(417) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
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
@@ -157,9 +157,10 b' Failure to read getbundle HTTP request'
157 157 write(23) -> Server: badhttpserver\r\n
158 158 write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
159 159 write(41) -> Content-Type: application/mercurial-0.1\r\n
160 write(21) -> Content-Length: 405\r\n
160 readline(1 from -1) -> (1) x (?)
161 write(21) -> Content-Length: 417\r\n
161 162 write(2) -> \r\n
162 write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
163 write(417) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
163 164 readline\(12[34] from 65537\) -> \(2[67]\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
164 165 readline(9? from -1) -> (27) Accept-Encoding: identity\r\n (glob)
165 166 readline(7? from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
@@ -187,7 +188,7 b' Failure to read getbundle HTTP request'
187 188 readline(292 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
188 189 readline(262 from -1) -> (27) Accept-Encoding: identity\r\n
189 190 readline(235 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
190 readline(206 from -1) -> (206) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Ali
191 readline(206 from -1) -> (206) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtag
191 192 read limit reached; closing socket
192 193
193 194 $ rm -f error.log
@@ -214,9 +215,9 b' Now do a variation using POST to send ar'
214 215 write(23) -> Server: badhttpserver\r\n
215 216 write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
216 217 write(41) -> Content-Type: application/mercurial-0.1\r\n
217 write(21) -> Content-Length: 418\r\n
218 write(21) -> Content-Length: 430\r\n
218 219 write(2) -> \r\n
219 write(418) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
220 write(430) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
220 221 readline\(14[67] from 65537\) -> \(2[67]\) POST /\?cmd=batch HTTP/1.1\\r\\n (re)
221 222 readline\(1(19|20) from -1\) -> \(27\) Accept-Encoding: identity\\r\\n (re)
222 223 readline(9? from -1) -> (41) content-type: application/mercurial-0.1\r\n (glob)
@@ -273,7 +274,7 b' Server sends an incomplete capabilities '
273 274 $ cat hg.pid > $DAEMON_PIDS
274 275
275 276 $ hg clone http://localhost:$HGPORT/ clone
276 abort: HTTP request error (incomplete response; expected 385 bytes got 20)
277 abort: HTTP request error (incomplete response; expected 397 bytes got 20)
277 278 (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
278 279 [255]
279 280
@@ -290,9 +291,9 b' Server sends an incomplete capabilities '
290 291 write(23 from 23) -> (121) Server: badhttpserver\r\n
291 292 write(37 from 37) -> (84) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
292 293 write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n
293 write(21 from 21) -> (22) Content-Length: 405\r\n
294 write(21 from 21) -> (22) Content-Length: 417\r\n
294 295 write(2 from 2) -> (20) \r\n
295 write(20 from 405) -> (0) lookup changegroupsu
296 write(20 from 417) -> (0) lookup changegroupsu
296 297 write limit reached; closing socket
297 298
298 299 $ rm -f error.log
@@ -306,7 +307,7 b' TODO this output is horrible'
306 307
307 308 $ hg clone http://localhost:$HGPORT/ clone
308 309 abort: 'http://localhost:$HGPORT/' does not appear to be an hg repository:
309 ---%<--- (application/mercuria)
310 ---%<--- (applicat)
310 311
311 312 ---%<---
312 313 !
@@ -325,9 +326,9 b' TODO this output is horrible'
325 326 write(23 from 23) -> (636) Server: badhttpserver\r\n
326 327 write(37 from 37) -> (599) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
327 328 write(41 from 41) -> (558) Content-Type: application/mercurial-0.1\r\n
328 write(21 from 21) -> (537) Content-Length: 405\r\n
329 write(21 from 21) -> (537) Content-Length: 417\r\n
329 330 write(2 from 2) -> (535) \r\n
330 write(405 from 405) -> (130) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
331 write(417 from 417) -> (118) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
331 332 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
332 333 readline(-1) -> (27) Accept-Encoding: identity\r\n
333 334 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -337,10 +338,10 b' TODO this output is horrible'
337 338 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
338 339 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
339 340 readline(-1) -> (2) \r\n
340 write(36 from 36) -> (94) HTTP/1.1 200 Script output follows\r\n
341 write(23 from 23) -> (71) Server: badhttpserver\r\n
342 write(37 from 37) -> (34) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
343 write(34 from 41) -> (0) Content-Type: application/mercuria
341 write(36 from 36) -> (82) HTTP/1.1 200 Script output follows\r\n
342 write(23 from 23) -> (59) Server: badhttpserver\r\n
343 write(37 from 37) -> (22) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
344 write(22 from 41) -> (0) Content-Type: applicat
344 345 write limit reached; closing socket
345 346 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
346 347
@@ -373,9 +374,9 b' TODO client spews a stack due to uncaugh'
373 374 write(23 from 23) -> (701) Server: badhttpserver\r\n
374 375 write(37 from 37) -> (664) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
375 376 write(41 from 41) -> (623) Content-Type: application/mercurial-0.1\r\n
376 write(21 from 21) -> (602) Content-Length: 405\r\n
377 write(21 from 21) -> (602) Content-Length: 417\r\n
377 378 write(2 from 2) -> (600) \r\n
378 write(405 from 405) -> (195) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
379 write(417 from 417) -> (183) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
379 380 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
380 381 readline(-1) -> (27) Accept-Encoding: identity\r\n
381 382 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -385,13 +386,13 b' TODO client spews a stack due to uncaugh'
385 386 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
386 387 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
387 388 readline(-1) -> (2) \r\n
388 write(36 from 36) -> (159) HTTP/1.1 200 Script output follows\r\n
389 write(23 from 23) -> (136) Server: badhttpserver\r\n
390 write(37 from 37) -> (99) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
391 write(41 from 41) -> (58) Content-Type: application/mercurial-0.1\r\n
392 write(20 from 20) -> (38) Content-Length: 42\r\n
393 write(2 from 2) -> (36) \r\n
394 write(36 from 42) -> (0) 96ee1d7354c4ad7372047672c36a1f561e3a
389 write(36 from 36) -> (147) HTTP/1.1 200 Script output follows\r\n
390 write(23 from 23) -> (124) Server: badhttpserver\r\n
391 write(37 from 37) -> (87) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
392 write(41 from 41) -> (46) Content-Type: application/mercurial-0.1\r\n
393 write(20 from 20) -> (26) Content-Length: 42\r\n
394 write(2 from 2) -> (24) \r\n
395 write(24 from 42) -> (0) 96ee1d7354c4ad7372047672
395 396 write limit reached; closing socket
396 397
397 398 $ rm -f error.log
@@ -406,7 +407,7 b' TODO this output is terrible'
406 407 $ hg clone http://localhost:$HGPORT/ clone
407 408 requesting all changes
408 409 abort: 'http://localhost:$HGPORT/' does not appear to be an hg repository:
409 ---%<--- (application/mercuri)
410 ---%<--- (applica)
410 411
411 412 ---%<---
412 413 !
@@ -425,9 +426,9 b' TODO this output is terrible'
425 426 write(23 from 23) -> (836) Server: badhttpserver\r\n
426 427 write(37 from 37) -> (799) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
427 428 write(41 from 41) -> (758) Content-Type: application/mercurial-0.1\r\n
428 write(21 from 21) -> (737) Content-Length: 405\r\n
429 write(21 from 21) -> (737) Content-Length: 417\r\n
429 430 write(2 from 2) -> (735) \r\n
430 write(405 from 405) -> (330) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
431 write(417 from 417) -> (318) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
431 432 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
432 433 readline(-1) -> (27) Accept-Encoding: identity\r\n
433 434 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -437,26 +438,26 b' TODO this output is terrible'
437 438 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
438 439 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
439 440 readline(-1) -> (2) \r\n
440 write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n
441 write(23 from 23) -> (271) Server: badhttpserver\r\n
442 write(37 from 37) -> (234) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
443 write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n
444 write(20 from 20) -> (173) Content-Length: 42\r\n
445 write(2 from 2) -> (171) \r\n
446 write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
441 write(36 from 36) -> (282) HTTP/1.1 200 Script output follows\r\n
442 write(23 from 23) -> (259) Server: badhttpserver\r\n
443 write(37 from 37) -> (222) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
444 write(41 from 41) -> (181) Content-Type: application/mercurial-0.1\r\n
445 write(20 from 20) -> (161) Content-Length: 42\r\n
446 write(2 from 2) -> (159) \r\n
447 write(42 from 42) -> (117) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
447 448 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
448 449 readline(-1) -> (27) Accept-Encoding: identity\r\n
449 450 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
450 readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
451 readline(-1) -> (410) x-hgarg-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&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
451 452 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
452 453 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
453 454 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
454 455 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
455 456 readline(-1) -> (2) \r\n
456 write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n
457 write(23 from 23) -> (70) Server: badhttpserver\r\n
458 write(37 from 37) -> (33) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
459 write(33 from 41) -> (0) Content-Type: application/mercuri
457 write(36 from 36) -> (81) HTTP/1.1 200 Script output follows\r\n
458 write(23 from 23) -> (58) Server: badhttpserver\r\n
459 write(37 from 37) -> (21) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
460 write(21 from 41) -> (0) Content-Type: applica
460 461 write limit reached; closing socket
461 462 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
462 463
@@ -464,7 +465,7 b' TODO this output is terrible'
464 465
465 466 Server sends empty HTTP body for getbundle
466 467
467 $ hg serve --config badserver.closeaftersendbytes=933 -p $HGPORT -d --pid-file=hg.pid -E error.log
468 $ hg serve --config badserver.closeaftersendbytes=945 -p $HGPORT -d --pid-file=hg.pid -E error.log
468 469 $ cat hg.pid > $DAEMON_PIDS
469 470
470 471 $ hg clone http://localhost:$HGPORT/ clone
@@ -482,13 +483,13 b' Server sends empty HTTP body for getbund'
482 483 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
483 484 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
484 485 readline(-1) -> (2) \r\n
485 write(36 from 36) -> (897) HTTP/1.1 200 Script output follows\r\n
486 write(23 from 23) -> (874) Server: badhttpserver\r\n
487 write(37 from 37) -> (837) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
488 write(41 from 41) -> (796) Content-Type: application/mercurial-0.1\r\n
489 write(21 from 21) -> (775) Content-Length: 405\r\n
490 write(2 from 2) -> (773) \r\n
491 write(405 from 405) -> (368) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
486 write(36 from 36) -> (909) HTTP/1.1 200 Script output follows\r\n
487 write(23 from 23) -> (886) Server: badhttpserver\r\n
488 write(37 from 37) -> (849) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
489 write(41 from 41) -> (808) Content-Type: application/mercurial-0.1\r\n
490 write(21 from 21) -> (787) Content-Length: 417\r\n
491 write(2 from 2) -> (785) \r\n
492 write(417 from 417) -> (368) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
492 493 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
493 494 readline(-1) -> (27) Accept-Encoding: identity\r\n
494 495 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -508,7 +509,7 b' Server sends empty HTTP body for getbund'
508 509 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
509 510 readline(-1) -> (27) Accept-Encoding: identity\r\n
510 511 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
511 readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
512 readline(-1) -> (410) x-hgarg-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&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
512 513 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
513 514 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
514 515 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
@@ -527,7 +528,7 b' Server sends empty HTTP body for getbund'
527 528
528 529 Server sends partial compression string
529 530
530 $ hg serve --config badserver.closeaftersendbytes=945 -p $HGPORT -d --pid-file=hg.pid -E error.log
531 $ hg serve --config badserver.closeaftersendbytes=957 -p $HGPORT -d --pid-file=hg.pid -E error.log
531 532 $ cat hg.pid > $DAEMON_PIDS
532 533
533 534 $ hg clone http://localhost:$HGPORT/ clone
@@ -545,13 +546,13 b' Server sends partial compression string'
545 546 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
546 547 readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
547 548 readline(-1) -> (2) \r\n
548 write(36 from 36) -> (909) HTTP/1.1 200 Script output follows\r\n
549 write(23 from 23) -> (886) Server: badhttpserver\r\n
550 write(37 from 37) -> (849) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
551 write(41 from 41) -> (808) Content-Type: application/mercurial-0.1\r\n
552 write(21 from 21) -> (787) Content-Length: 405\r\n
553 write(2 from 2) -> (785) \r\n
554 write(405 from 405) -> (380) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%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
549 write(36 from 36) -> (921) HTTP/1.1 200 Script output follows\r\n
550 write(23 from 23) -> (898) Server: badhttpserver\r\n
551 write(37 from 37) -> (861) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
552 write(41 from 41) -> (820) Content-Type: application/mercurial-0.1\r\n
553 write(21 from 21) -> (799) Content-Length: 417\r\n
554 write(2 from 2) -> (797) \r\n
555 write(417 from 417) -> (380) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch 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
555 556 readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
556 557 readline(-1) -> (27) Accept-Encoding: identity\r\n
557 558 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
@@ -571,7 +572,7 b' Server sends partial compression string'
571 572 readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
572 573 readline(-1) -> (27) Accept-Encoding: identity\r\n
573 574 readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
574 readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
575 readline(-1) -> (410) x-hgarg-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&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
575 576 readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$\r\n
576 577 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
577 578 readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob)
@@ -592,7 +593,7 b' Server sends partial compression string'
592 593
593 594 Server sends partial bundle2 header magic
594 595
595 $ hg serve --config badserver.closeaftersendbytes=954 -p $HGPORT -d --pid-file=hg.pid -E error.log
596 $ hg serve --config badserver.closeaftersendbytes=966 -p $HGPORT -d --pid-file=hg.pid -E error.log
596 597 $ cat hg.pid > $DAEMON_PIDS
597 598
598 599 $ hg clone http://localhost:$HGPORT/ clone
@@ -616,7 +617,7 b' Server sends partial bundle2 header magi'
616 617
617 618 Server sends incomplete bundle2 stream params length
618 619
619 $ hg serve --config badserver.closeaftersendbytes=963 -p $HGPORT -d --pid-file=hg.pid -E error.log
620 $ hg serve --config badserver.closeaftersendbytes=975 -p $HGPORT -d --pid-file=hg.pid -E error.log
620 621 $ cat hg.pid > $DAEMON_PIDS
621 622
622 623 $ hg clone http://localhost:$HGPORT/ clone
@@ -641,7 +642,7 b' Server sends incomplete bundle2 stream p'
641 642
642 643 Servers stops after bundle2 stream params header
643 644
644 $ hg serve --config badserver.closeaftersendbytes=966 -p $HGPORT -d --pid-file=hg.pid -E error.log
645 $ hg serve --config badserver.closeaftersendbytes=978 -p $HGPORT -d --pid-file=hg.pid -E error.log
645 646 $ cat hg.pid > $DAEMON_PIDS
646 647
647 648 $ hg clone http://localhost:$HGPORT/ clone
@@ -666,7 +667,7 b' Servers stops after bundle2 stream param'
666 667
667 668 Server stops sending after bundle2 part header length
668 669
669 $ hg serve --config badserver.closeaftersendbytes=975 -p $HGPORT -d --pid-file=hg.pid -E error.log
670 $ hg serve --config badserver.closeaftersendbytes=987 -p $HGPORT -d --pid-file=hg.pid -E error.log
670 671 $ cat hg.pid > $DAEMON_PIDS
671 672
672 673 $ hg clone http://localhost:$HGPORT/ clone
@@ -692,7 +693,7 b' Server stops sending after bundle2 part '
692 693
693 694 Server stops sending after bundle2 part header
694 695
695 $ hg serve --config badserver.closeaftersendbytes=1022 -p $HGPORT -d --pid-file=hg.pid -E error.log
696 $ hg serve --config badserver.closeaftersendbytes=1034 -p $HGPORT -d --pid-file=hg.pid -E error.log
696 697 $ cat hg.pid > $DAEMON_PIDS
697 698
698 699 $ hg clone http://localhost:$HGPORT/ clone
@@ -722,7 +723,7 b' Server stops sending after bundle2 part '
722 723
723 724 Server stops after bundle2 part payload chunk size
724 725
725 $ hg serve --config badserver.closeaftersendbytes=1031 -p $HGPORT -d --pid-file=hg.pid -E error.log
726 $ hg serve --config badserver.closeaftersendbytes=1043 -p $HGPORT -d --pid-file=hg.pid -E error.log
726 727 $ cat hg.pid > $DAEMON_PIDS
727 728
728 729 $ hg clone http://localhost:$HGPORT/ clone
@@ -753,7 +754,7 b' Server stops after bundle2 part payload '
753 754
754 755 Server stops sending in middle of bundle2 payload chunk
755 756
756 $ hg serve --config badserver.closeaftersendbytes=1504 -p $HGPORT -d --pid-file=hg.pid -E error.log
757 $ hg serve --config badserver.closeaftersendbytes=1516 -p $HGPORT -d --pid-file=hg.pid -E error.log
757 758 $ cat hg.pid > $DAEMON_PIDS
758 759
759 760 $ hg clone http://localhost:$HGPORT/ clone
@@ -785,7 +786,7 b' Server stops sending in middle of bundle'
785 786
786 787 Server stops sending after 0 length payload chunk size
787 788
788 $ hg serve --config badserver.closeaftersendbytes=1513 -p $HGPORT -d --pid-file=hg.pid -E error.log
789 $ hg serve --config badserver.closeaftersendbytes=1525 -p $HGPORT -d --pid-file=hg.pid -E error.log
789 790 $ cat hg.pid > $DAEMON_PIDS
790 791
791 792 $ hg clone http://localhost:$HGPORT/ clone
@@ -822,7 +823,7 b' Server stops sending after 0 length payl'
822 823 Server stops sending after 0 part bundle part header (indicating end of bundle2 payload)
823 824 This is before the 0 size chunked transfer part that signals end of HTTP response.
824 825
825 $ hg serve --config badserver.closeaftersendbytes=1710 -p $HGPORT -d --pid-file=hg.pid -E error.log
826 $ hg serve --config badserver.closeaftersendbytes=1722 -p $HGPORT -d --pid-file=hg.pid -E error.log
826 827 $ cat hg.pid > $DAEMON_PIDS
827 828
828 829 $ hg clone http://localhost:$HGPORT/ clone
@@ -866,7 +867,7 b' This is before the 0 size chunked transf'
866 867
867 868 Server sends a size 0 chunked-transfer size without terminating \r\n
868 869
869 $ hg serve --config badserver.closeaftersendbytes=1713 -p $HGPORT -d --pid-file=hg.pid -E error.log
870 $ hg serve --config badserver.closeaftersendbytes=1725 -p $HGPORT -d --pid-file=hg.pid -E error.log
870 871 $ cat hg.pid > $DAEMON_PIDS
871 872
872 873 $ hg clone http://localhost:$HGPORT/ clone
@@ -467,7 +467,7 b' debug output'
467 467 running .* ".*/dummyssh" ['"]user@dummy['"] ('|")hg -R remote serve --stdio('|") (re)
468 468 sending hello command
469 469 sending between command
470 remote: 372
470 remote: 384
471 471 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS$ unbundle=HG10GZ,HG10BZ,HG10UN
472 472 remote: 1
473 473 preparing listkeys for "bookmarks"
@@ -483,7 +483,7 b' debug output'
483 483 running .* ".*/dummyssh" ['"]user@dummy['"] ('|")hg -R remote serve --stdio('|") (re)
484 484 sending hello command
485 485 sending between command
486 remote: 372
486 remote: 384
487 487 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS$ unbundle=HG10GZ,HG10BZ,HG10UN
488 488 remote: 1
489 489 query 1; heads
General Comments 0
You need to be logged in to leave comments. Login now