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