##// END OF EJS Templates
phases: abort the whole push if phases fail to update (BC)...
Pierre-Yves David -
r25502:bd41c193 default
parent child Browse files
Show More
@@ -524,14 +524,23 b' def _pushb2phases(pushop, bundler):'
524 524 return
525 525 pushop.stepsdone.add('phases')
526 526 part2node = []
527
528 def handlefailure(pushop, exc):
529 targetid = int(exc.partid)
530 for partid, node in part2node:
531 if partid == targetid:
532 raise error.Abort(_('updating %s to public failed') % node)
533
527 534 enc = pushkey.encode
528 535 for newremotehead in pushop.outdatedphases:
529 part = bundler.newpart('pushkey', mandatory=False)
536 part = bundler.newpart('pushkey')
530 537 part.addparam('namespace', enc('phases'))
531 538 part.addparam('key', enc(newremotehead.hex()))
532 539 part.addparam('old', enc(str(phases.draft)))
533 540 part.addparam('new', enc(str(phases.public)))
534 541 part2node.append((part.id, newremotehead))
542 pushop.pkfailcb[part.id] = handlefailure
543
535 544 def handlereply(op):
536 545 for partid, node in part2node:
537 546 partrep = op.records.getreplies(partid)
@@ -102,7 +102,7 b' Extension disabled for lack of a hook'
102 102 bundle2-output-part: "replycaps" 155 bytes payload
103 103 bundle2-output-part: "check:heads" streamed payload
104 104 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
105 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
105 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
106 106 bundle2-input-bundle: with-transaction
107 107 bundle2-input-part: "replycaps" supported
108 108 bundle2-input-part: total payload size 155
@@ -120,7 +120,7 b' Extension disabled for lack of a hook'
120 120 adding quux/file.py revisions
121 121 added 3 changesets with 3 changes to 3 files
122 122 bundle2-input-part: total payload size 1606
123 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
123 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
124 124 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
125 125 bundle2-input-bundle: 3 parts total
126 126 updating the branch cache
@@ -166,7 +166,7 b' Extension disabled for lack of acl.sourc'
166 166 bundle2-output-part: "replycaps" 155 bytes payload
167 167 bundle2-output-part: "check:heads" streamed payload
168 168 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
169 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
169 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
170 170 bundle2-input-bundle: with-transaction
171 171 bundle2-input-part: "replycaps" supported
172 172 bundle2-input-part: total payload size 155
@@ -186,7 +186,7 b' Extension disabled for lack of acl.sourc'
186 186 calling hook pretxnchangegroup.acl: hgext.acl.hook
187 187 acl: changes have source "push" - skipping
188 188 bundle2-input-part: total payload size 1606
189 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
189 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
190 190 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
191 191 bundle2-input-bundle: 3 parts total
192 192 updating the branch cache
@@ -233,7 +233,7 b' No [acl.allow]/[acl.deny]'
233 233 bundle2-output-part: "replycaps" 155 bytes payload
234 234 bundle2-output-part: "check:heads" streamed payload
235 235 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
236 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
236 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
237 237 bundle2-input-bundle: with-transaction
238 238 bundle2-input-part: "replycaps" supported
239 239 bundle2-input-part: total payload size 155
@@ -263,7 +263,7 b' No [acl.allow]/[acl.deny]'
263 263 acl: branch access granted: "911600dab2ae" on branch "default"
264 264 acl: path access granted: "911600dab2ae"
265 265 bundle2-input-part: total payload size 1606
266 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
266 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
267 267 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
268 268 bundle2-input-bundle: 3 parts total
269 269 updating the branch cache
@@ -310,7 +310,7 b' Empty [acl.allow]'
310 310 bundle2-output-part: "replycaps" 155 bytes payload
311 311 bundle2-output-part: "check:heads" streamed payload
312 312 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
313 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
313 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
314 314 bundle2-input-bundle: with-transaction
315 315 bundle2-input-part: "replycaps" supported
316 316 bundle2-input-part: total payload size 155
@@ -375,7 +375,7 b' fred is allowed inside foo/'
375 375 bundle2-output-part: "replycaps" 155 bytes payload
376 376 bundle2-output-part: "check:heads" streamed payload
377 377 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
378 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
378 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
379 379 bundle2-input-bundle: with-transaction
380 380 bundle2-input-part: "replycaps" supported
381 381 bundle2-input-part: total payload size 155
@@ -445,7 +445,7 b' Empty [acl.deny]'
445 445 bundle2-output-part: "replycaps" 155 bytes payload
446 446 bundle2-output-part: "check:heads" streamed payload
447 447 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
448 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
448 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
449 449 bundle2-input-bundle: with-transaction
450 450 bundle2-input-part: "replycaps" supported
451 451 bundle2-input-part: total payload size 155
@@ -512,7 +512,7 b' fred is allowed inside foo/, but not foo'
512 512 bundle2-output-part: "replycaps" 155 bytes payload
513 513 bundle2-output-part: "check:heads" streamed payload
514 514 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
515 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
515 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
516 516 bundle2-input-bundle: with-transaction
517 517 bundle2-input-part: "replycaps" supported
518 518 bundle2-input-part: total payload size 155
@@ -584,7 +584,7 b' fred is allowed inside foo/, but not foo'
584 584 bundle2-output-part: "replycaps" 155 bytes payload
585 585 bundle2-output-part: "check:heads" streamed payload
586 586 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
587 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
587 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
588 588 bundle2-input-bundle: with-transaction
589 589 bundle2-input-part: "replycaps" supported
590 590 bundle2-input-part: total payload size 155
@@ -653,7 +653,7 b' fred is allowed inside foo/, but not foo'
653 653 bundle2-output-part: "replycaps" 155 bytes payload
654 654 bundle2-output-part: "check:heads" streamed payload
655 655 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
656 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
656 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
657 657 bundle2-input-bundle: with-transaction
658 658 bundle2-input-part: "replycaps" supported
659 659 bundle2-input-part: total payload size 155
@@ -724,7 +724,7 b' barney is allowed everywhere'
724 724 bundle2-output-part: "replycaps" 155 bytes payload
725 725 bundle2-output-part: "check:heads" streamed payload
726 726 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
727 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
727 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
728 728 bundle2-input-bundle: with-transaction
729 729 bundle2-input-part: "replycaps" supported
730 730 bundle2-input-part: total payload size 155
@@ -754,7 +754,7 b' barney is allowed everywhere'
754 754 acl: branch access granted: "911600dab2ae" on branch "default"
755 755 acl: path access granted: "911600dab2ae"
756 756 bundle2-input-part: total payload size 1606
757 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
757 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
758 758 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
759 759 bundle2-input-bundle: 3 parts total
760 760 updating the branch cache
@@ -808,7 +808,7 b' wilma can change files with a .txt exten'
808 808 bundle2-output-part: "replycaps" 155 bytes payload
809 809 bundle2-output-part: "check:heads" streamed payload
810 810 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
811 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
811 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
812 812 bundle2-input-bundle: with-transaction
813 813 bundle2-input-part: "replycaps" supported
814 814 bundle2-input-part: total payload size 155
@@ -886,7 +886,7 b' file specified by acl.config does not ex'
886 886 bundle2-output-part: "replycaps" 155 bytes payload
887 887 bundle2-output-part: "check:heads" streamed payload
888 888 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
889 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
889 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
890 890 bundle2-input-bundle: with-transaction
891 891 bundle2-input-part: "replycaps" supported
892 892 bundle2-input-part: total payload size 155
@@ -959,7 +959,7 b' betty is allowed inside foo/ by a acl.co'
959 959 bundle2-output-part: "replycaps" 155 bytes payload
960 960 bundle2-output-part: "check:heads" streamed payload
961 961 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
962 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
962 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
963 963 bundle2-input-bundle: with-transaction
964 964 bundle2-input-part: "replycaps" supported
965 965 bundle2-input-part: total payload size 155
@@ -1043,7 +1043,7 b' acl.config can set only [acl.allow]/[acl'
1043 1043 bundle2-output-part: "replycaps" 155 bytes payload
1044 1044 bundle2-output-part: "check:heads" streamed payload
1045 1045 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1046 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1046 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1047 1047 bundle2-input-bundle: with-transaction
1048 1048 bundle2-input-part: "replycaps" supported
1049 1049 bundle2-input-part: total payload size 155
@@ -1073,7 +1073,7 b' acl.config can set only [acl.allow]/[acl'
1073 1073 acl: branch access granted: "911600dab2ae" on branch "default"
1074 1074 acl: path access granted: "911600dab2ae"
1075 1075 bundle2-input-part: total payload size 1606
1076 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1076 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1077 1077 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1078 1078 bundle2-input-bundle: 3 parts total
1079 1079 updating the branch cache
@@ -1130,7 +1130,7 b' fred is always allowed'
1130 1130 bundle2-output-part: "replycaps" 155 bytes payload
1131 1131 bundle2-output-part: "check:heads" streamed payload
1132 1132 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1133 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1133 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1134 1134 bundle2-input-bundle: with-transaction
1135 1135 bundle2-input-part: "replycaps" supported
1136 1136 bundle2-input-part: total payload size 155
@@ -1160,7 +1160,7 b' fred is always allowed'
1160 1160 acl: branch access granted: "911600dab2ae" on branch "default"
1161 1161 acl: path access granted: "911600dab2ae"
1162 1162 bundle2-input-part: total payload size 1606
1163 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1163 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1164 1164 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1165 1165 bundle2-input-bundle: 3 parts total
1166 1166 updating the branch cache
@@ -1213,7 +1213,7 b' no one is allowed inside foo/Bar/'
1213 1213 bundle2-output-part: "replycaps" 155 bytes payload
1214 1214 bundle2-output-part: "check:heads" streamed payload
1215 1215 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1216 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1216 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1217 1217 bundle2-input-bundle: with-transaction
1218 1218 bundle2-input-part: "replycaps" supported
1219 1219 bundle2-input-part: total payload size 155
@@ -1289,7 +1289,7 b' OS-level groups'
1289 1289 bundle2-output-part: "replycaps" 155 bytes payload
1290 1290 bundle2-output-part: "check:heads" streamed payload
1291 1291 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1292 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1292 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1293 1293 bundle2-input-bundle: with-transaction
1294 1294 bundle2-input-part: "replycaps" supported
1295 1295 bundle2-input-part: total payload size 155
@@ -1320,7 +1320,7 b' OS-level groups'
1320 1320 acl: branch access granted: "911600dab2ae" on branch "default"
1321 1321 acl: path access granted: "911600dab2ae"
1322 1322 bundle2-input-part: total payload size 1606
1323 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1323 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1324 1324 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1325 1325 bundle2-input-bundle: 3 parts total
1326 1326 updating the branch cache
@@ -1373,7 +1373,7 b' OS-level groups'
1373 1373 bundle2-output-part: "replycaps" 155 bytes payload
1374 1374 bundle2-output-part: "check:heads" streamed payload
1375 1375 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1376 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1376 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1377 1377 bundle2-input-bundle: with-transaction
1378 1378 bundle2-input-part: "replycaps" supported
1379 1379 bundle2-input-part: total payload size 155
@@ -1488,8 +1488,8 b' No branch acls specified'
1488 1488 bundle2-output-part: "replycaps" 155 bytes payload
1489 1489 bundle2-output-part: "check:heads" streamed payload
1490 1490 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1491 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1492 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1491 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1492 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1493 1493 bundle2-input-bundle: with-transaction
1494 1494 bundle2-input-part: "replycaps" supported
1495 1495 bundle2-input-part: total payload size 155
@@ -1523,9 +1523,9 b' No branch acls specified'
1523 1523 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1524 1524 acl: path access granted: "e8fc755d4d82"
1525 1525 bundle2-input-part: total payload size 2101
1526 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1526 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1527 1527 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1528 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1528 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1529 1529 pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
1530 1530 bundle2-input-bundle: 4 parts total
1531 1531 updating the branch cache
@@ -1577,8 +1577,8 b' Branch acl deny test'
1577 1577 bundle2-output-part: "replycaps" 155 bytes payload
1578 1578 bundle2-output-part: "check:heads" streamed payload
1579 1579 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1580 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1581 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1580 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1581 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1582 1582 bundle2-input-bundle: with-transaction
1583 1583 bundle2-input-part: "replycaps" supported
1584 1584 bundle2-input-part: total payload size 155
@@ -1651,8 +1651,8 b' Branch acl empty allow test'
1651 1651 bundle2-output-part: "replycaps" 155 bytes payload
1652 1652 bundle2-output-part: "check:heads" streamed payload
1653 1653 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1654 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1655 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1654 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1655 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1656 1656 bundle2-input-bundle: with-transaction
1657 1657 bundle2-input-part: "replycaps" supported
1658 1658 bundle2-input-part: total payload size 155
@@ -1721,8 +1721,8 b' Branch acl allow other'
1721 1721 bundle2-output-part: "replycaps" 155 bytes payload
1722 1722 bundle2-output-part: "check:heads" streamed payload
1723 1723 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1724 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1725 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1724 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1725 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1726 1726 bundle2-input-bundle: with-transaction
1727 1727 bundle2-input-part: "replycaps" supported
1728 1728 bundle2-input-part: total payload size 155
@@ -1785,8 +1785,8 b' Branch acl allow other'
1785 1785 bundle2-output-part: "replycaps" 155 bytes payload
1786 1786 bundle2-output-part: "check:heads" streamed payload
1787 1787 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1788 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1789 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1788 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1789 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1790 1790 bundle2-input-bundle: with-transaction
1791 1791 bundle2-input-part: "replycaps" supported
1792 1792 bundle2-input-part: total payload size 155
@@ -1820,9 +1820,9 b' Branch acl allow other'
1820 1820 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1821 1821 acl: path access granted: "e8fc755d4d82"
1822 1822 bundle2-input-part: total payload size 2101
1823 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1823 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1824 1824 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1825 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1825 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1826 1826 pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
1827 1827 bundle2-input-bundle: 4 parts total
1828 1828 updating the branch cache
@@ -1879,8 +1879,8 b' push foobar into the remote'
1879 1879 bundle2-output-part: "replycaps" 155 bytes payload
1880 1880 bundle2-output-part: "check:heads" streamed payload
1881 1881 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1882 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1883 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1882 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1883 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1884 1884 bundle2-input-bundle: with-transaction
1885 1885 bundle2-input-part: "replycaps" supported
1886 1886 bundle2-input-part: total payload size 155
@@ -1914,9 +1914,9 b' push foobar into the remote'
1914 1914 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1915 1915 acl: path access granted: "e8fc755d4d82"
1916 1916 bundle2-input-part: total payload size 2101
1917 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1917 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1918 1918 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
1919 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
1919 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
1920 1920 pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
1921 1921 bundle2-input-bundle: 4 parts total
1922 1922 updating the branch cache
@@ -1972,8 +1972,8 b' Branch acl conflicting deny'
1972 1972 bundle2-output-part: "replycaps" 155 bytes payload
1973 1973 bundle2-output-part: "check:heads" streamed payload
1974 1974 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
1975 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1976 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
1975 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1976 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
1977 1977 bundle2-input-bundle: with-transaction
1978 1978 bundle2-input-part: "replycaps" supported
1979 1979 bundle2-input-part: total payload size 155
@@ -2041,8 +2041,8 b" User 'astro' must not be denied"
2041 2041 bundle2-output-part: "replycaps" 155 bytes payload
2042 2042 bundle2-output-part: "check:heads" streamed payload
2043 2043 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2044 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
2045 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
2044 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
2045 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
2046 2046 bundle2-input-bundle: with-transaction
2047 2047 bundle2-input-part: "replycaps" supported
2048 2048 bundle2-input-part: total payload size 155
@@ -2076,9 +2076,9 b" User 'astro' must not be denied"
2076 2076 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
2077 2077 acl: path access granted: "e8fc755d4d82"
2078 2078 bundle2-input-part: total payload size 2101
2079 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
2079 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
2080 2080 pushing key for "phases:911600dab2ae7a9baff75958b84fe606851ce955"
2081 bundle2-input-part: "pushkey" (advisory) (params: 4 mandatory) supported
2081 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
2082 2082 pushing key for "phases:e8fc755d4d8217ee5b0c2bb41558c40d43b92c01"
2083 2083 bundle2-input-bundle: 4 parts total
2084 2084 updating the branch cache
@@ -2128,8 +2128,8 b' Non-astro users must be denied'
2128 2128 bundle2-output-part: "replycaps" 155 bytes payload
2129 2129 bundle2-output-part: "check:heads" streamed payload
2130 2130 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
2131 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
2132 bundle2-output-part: "pushkey" (advisory) (params: 4 mandatory) empty payload
2131 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
2132 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
2133 2133 bundle2-input-bundle: with-transaction
2134 2134 bundle2-input-part: "replycaps" supported
2135 2135 bundle2-input-part: total payload size 155
@@ -125,8 +125,11 b' expect push success, phase change failur'
125 125 remote: added 1 changesets with 1 changes to 1 files
126 126 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:127.0.0.1: (glob)
127 127 remote: pushkey-abort: prepushkey hook exited with status 1
128 updating ba677d0156c1 to public failed!
128 remote: transaction abort!
129 remote: rollback completed
130 abort: updating ba677d0156c1 to public failed
129 131 % serve errors
132 [255]
130 133
131 134 expect phase change success
132 135
@@ -134,9 +137,12 b' expect phase change success'
134 137 $ req
135 138 pushing to http://localhost:$HGPORT/
136 139 searching for changes
137 no changes found
140 remote: adding changesets
141 remote: adding manifests
142 remote: adding file changes
143 remote: added 1 changesets with 1 changes to 1 files
144 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:127.0.0.1: (glob)
138 145 % serve errors
139 [1]
140 146 $ hg rollback
141 147 repository tip rolled back to revision 0 (undo serve)
142 148
General Comments 0
You need to be logged in to leave comments. Login now