##// END OF EJS Templates
branchcache: explicitly track inheritence "state"...
marmoute -
r52386:82c1a388 default
parent child Browse files
Show More
@@ -4303,8 +4303,16 b' def perfbranchmapupdate(ui, repo, base=('
4303 baserepo = repo.filtered(b'__perf_branchmap_update_base')
4303 baserepo = repo.filtered(b'__perf_branchmap_update_base')
4304 targetrepo = repo.filtered(b'__perf_branchmap_update_target')
4304 targetrepo = repo.filtered(b'__perf_branchmap_update_target')
4305
4305
4306 bcache = repo.branchmap()
4307 copy_method = 'copy'
4308
4306 copy_base_kwargs = copy_base_kwargs = {}
4309 copy_base_kwargs = copy_base_kwargs = {}
4307 if 'repo' in getargspec(repo.branchmap().copy).args:
4310 if hasattr(bcache, 'copy'):
4311 if 'repo' in getargspec(bcache.copy).args:
4312 copy_base_kwargs = {"repo": baserepo}
4313 copy_target_kwargs = {"repo": targetrepo}
4314 else:
4315 copy_method = 'inherit_for'
4308 copy_base_kwargs = {"repo": baserepo}
4316 copy_base_kwargs = {"repo": baserepo}
4309 copy_target_kwargs = {"repo": targetrepo}
4317 copy_target_kwargs = {"repo": targetrepo}
4310
4318
@@ -4316,7 +4324,7 b' def perfbranchmapupdate(ui, repo, base=('
4316 if candidatebm.validfor(baserepo):
4324 if candidatebm.validfor(baserepo):
4317 filtered = repoview.filterrevs(repo, candidatefilter)
4325 filtered = repoview.filterrevs(repo, candidatefilter)
4318 missing = [r for r in allbaserevs if r in filtered]
4326 missing = [r for r in allbaserevs if r in filtered]
4319 base = candidatebm.copy(**copy_base_kwargs)
4327 base = getattr(candidatebm, copy_method)(**copy_base_kwargs)
4320 base.update(baserepo, missing)
4328 base.update(baserepo, missing)
4321 break
4329 break
4322 candidatefilter = subsettable.get(candidatefilter)
4330 candidatefilter = subsettable.get(candidatefilter)
@@ -4326,7 +4334,7 b' def perfbranchmapupdate(ui, repo, base=('
4326 base.update(baserepo, allbaserevs)
4334 base.update(baserepo, allbaserevs)
4327
4335
4328 def setup():
4336 def setup():
4329 x[0] = base.copy(**copy_target_kwargs)
4337 x[0] = getattr(base, copy_method)(**copy_target_kwargs)
4330 if clearcaches:
4338 if clearcaches:
4331 unfi._revbranchcache = None
4339 unfi._revbranchcache = None
4332 clearchangelog(repo)
4340 clearchangelog(repo)
@@ -85,8 +85,7 b' class BranchMapCache:'
85 bcache._filtername,
85 bcache._filtername,
86 repo.filtername,
86 repo.filtername,
87 )
87 )
88 if bcache._dirty:
88 bcache.sync_disk(repo)
89 bcache.write(repo)
90
89
91 def updatecache(self, repo):
90 def updatecache(self, repo):
92 """Update the cache for the given filtered view on a repository"""
91 """Update the cache for the given filtered view on a repository"""
@@ -109,7 +108,7 b' class BranchMapCache:'
109 subsetname = subsettable.get(filtername)
108 subsetname = subsettable.get(filtername)
110 if subsetname is not None:
109 if subsetname is not None:
111 subset = repo.filtered(subsetname)
110 subset = repo.filtered(subsetname)
112 bcache = self[subset].copy(repo)
111 bcache = self[subset].inherit_for(repo)
113 extrarevs = subset.changelog.filteredrevs - cl.filteredrevs
112 extrarevs = subset.changelog.filteredrevs - cl.filteredrevs
114 revs.extend(r for r in extrarevs if r <= bcache.tiprev)
113 revs.extend(r for r in extrarevs if r <= bcache.tiprev)
115 else:
114 else:
@@ -160,7 +159,7 b' class BranchMapCache:'
160 if cache.validfor(rview):
159 if cache.validfor(rview):
161 cache._filtername = candidate
160 cache._filtername = candidate
162 self._per_filter[candidate] = cache
161 self._per_filter[candidate] = cache
163 cache._dirty = True
162 cache._state = STATE_DIRTY
164 cache.write(rview)
163 cache.write(rview)
165 return
164 return
166
165
@@ -173,12 +172,11 b' class BranchMapCache:'
173 cache = self._per_filter.get(filtername)
172 cache = self._per_filter.get(filtername)
174 if cache is None:
173 if cache is None:
175 continue
174 continue
176 if cache._dirty:
175 if filtername is None:
177 if filtername is None:
176 repo = unfi
178 repo = unfi
177 else:
179 else:
178 repo = unfi.filtered(filtername)
180 repo = unfi.filtered(filtername)
179 cache.sync_disk(repo)
181 cache.write(repo)
182
180
183
181
184 def _unknownnode(node):
182 def _unknownnode(node):
@@ -414,6 +412,11 b' class _BaseBranchCache:'
414 return max_rev
412 return max_rev
415
413
416
414
415 STATE_CLEAN = 1
416 STATE_INHERITED = 2
417 STATE_DIRTY = 3
418
419
417 class branchcache(_BaseBranchCache):
420 class branchcache(_BaseBranchCache):
418 """Branchmap info for a local repo or repoview"""
421 """Branchmap info for a local repo or repoview"""
419
422
@@ -431,6 +434,7 b' class branchcache(_BaseBranchCache):'
431 closednodes: Optional[Set[bytes]] = None,
434 closednodes: Optional[Set[bytes]] = None,
432 hasnode: Optional[Callable[[bytes], bool]] = None,
435 hasnode: Optional[Callable[[bytes], bool]] = None,
433 verify_node: bool = False,
436 verify_node: bool = False,
437 inherited: bool = False,
434 ) -> None:
438 ) -> None:
435 """hasnode is a function which can be used to verify whether changelog
439 """hasnode is a function which can be used to verify whether changelog
436 has a given node or not. If it's not provided, we assume that every node
440 has a given node or not. If it's not provided, we assume that every node
@@ -442,7 +446,9 b' class branchcache(_BaseBranchCache):'
442 self.tipnode = tipnode
446 self.tipnode = tipnode
443 self.tiprev = tiprev
447 self.tiprev = tiprev
444 self.filteredhash = filteredhash
448 self.filteredhash = filteredhash
445 self._dirty = False
449 self._state = STATE_CLEAN
450 if inherited:
451 self._state = STATE_INHERITED
446
452
447 super().__init__(repo=repo, entries=entries, closed_nodes=closednodes)
453 super().__init__(repo=repo, entries=entries, closed_nodes=closednodes)
448 # closednodes is a set of nodes that close their branch. If the branch
454 # closednodes is a set of nodes that close their branch. If the branch
@@ -555,7 +561,7 b' class branchcache(_BaseBranchCache):'
555 filename = b'%s-%s' % (filename, repo.filtername)
561 filename = b'%s-%s' % (filename, repo.filtername)
556 return filename
562 return filename
557
563
558 def copy(self, repo):
564 def inherit_for(self, repo):
559 """return a deep copy of the branchcache object"""
565 """return a deep copy of the branchcache object"""
560 assert repo.filtername != self._filtername
566 assert repo.filtername != self._filtername
561 other = type(self)(
567 other = type(self)(
@@ -569,16 +575,33 b' class branchcache(_BaseBranchCache):'
569 filteredhash=self.filteredhash,
575 filteredhash=self.filteredhash,
570 closednodes=set(self._closednodes),
576 closednodes=set(self._closednodes),
571 verify_node=self._verify_node,
577 verify_node=self._verify_node,
578 inherited=True,
572 )
579 )
573 # also copy information about the current verification state
580 # also copy information about the current verification state
574 other._verifiedbranches = set(self._verifiedbranches)
581 other._verifiedbranches = set(self._verifiedbranches)
575 return other
582 return other
576
583
584 def sync_disk(self, repo):
585 """synchronise the on disk file with the cache state
586
587 If new value specific to this filter level need to be written, the file
588 will be updated, if the state of the branchcache is inherited from a
589 subset, any stalled on disk file will be deleted.
590
591 That method does nothing if there is nothing to do.
592 """
593 if self._state == STATE_DIRTY:
594 self.write(repo)
595 elif self._state == STATE_INHERITED:
596 filename = self._filename(repo)
597 repo.cachevfs.tryunlink(filename)
598
577 def write(self, repo):
599 def write(self, repo):
578 assert self._filtername == repo.filtername, (
600 assert self._filtername == repo.filtername, (
579 self._filtername,
601 self._filtername,
580 repo.filtername,
602 repo.filtername,
581 )
603 )
604 assert self._state == STATE_DIRTY, self._state
582 tr = repo.currenttransaction()
605 tr = repo.currenttransaction()
583 if not getattr(tr, 'finalized', True):
606 if not getattr(tr, 'finalized', True):
584 # Avoid premature writing.
607 # Avoid premature writing.
@@ -597,7 +620,7 b' class branchcache(_BaseBranchCache):'
597 len(self._entries),
620 len(self._entries),
598 nodecount,
621 nodecount,
599 )
622 )
600 self._dirty = False
623 self._state = STATE_CLEAN
601 except (IOError, OSError, error.Abort) as inst:
624 except (IOError, OSError, error.Abort) as inst:
602 # Abort may be raised by read only opener, so log and continue
625 # Abort may be raised by read only opener, so log and continue
603 repo.ui.debug(
626 repo.ui.debug(
@@ -707,7 +730,7 b' class branchcache(_BaseBranchCache):'
707 self.filteredhash = scmutil.filteredhash(
730 self.filteredhash = scmutil.filteredhash(
708 repo, self.tiprev, needobsolete=True
731 repo, self.tiprev, needobsolete=True
709 )
732 )
710 self._dirty = True
733 self._state = STATE_DIRTY
711 self.write(repo)
734 self.write(repo)
712
735
713
736
@@ -167,7 +167,6 b' Extension disabled for lack of acl.sourc'
167 listing keys for "phases"
167 listing keys for "phases"
168 checking for updated bookmarks
168 checking for updated bookmarks
169 listing keys for "bookmarks"
169 listing keys for "bookmarks"
170 invalid branch cache (served): tip differs
171 listing keys for "bookmarks"
170 listing keys for "bookmarks"
172 3 changesets found
171 3 changesets found
173 list of changesets:
172 list of changesets:
@@ -187,7 +186,6 b' Extension disabled for lack of acl.sourc'
187 bundle2-input-part: total payload size * (glob)
186 bundle2-input-part: total payload size * (glob)
188 bundle2-input-part: "check:updated-heads" supported
187 bundle2-input-part: "check:updated-heads" supported
189 bundle2-input-part: total payload size * (glob)
188 bundle2-input-part: total payload size * (glob)
190 invalid branch cache (served): tip differs
191 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
189 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
192 adding changesets
190 adding changesets
193 add changeset ef1ea85a6374
191 add changeset ef1ea85a6374
@@ -237,7 +235,6 b' No [acl.allow]/[acl.deny]'
237 listing keys for "phases"
235 listing keys for "phases"
238 checking for updated bookmarks
236 checking for updated bookmarks
239 listing keys for "bookmarks"
237 listing keys for "bookmarks"
240 invalid branch cache (served): tip differs
241 listing keys for "bookmarks"
238 listing keys for "bookmarks"
242 3 changesets found
239 3 changesets found
243 list of changesets:
240 list of changesets:
@@ -257,7 +254,6 b' No [acl.allow]/[acl.deny]'
257 bundle2-input-part: total payload size * (glob)
254 bundle2-input-part: total payload size * (glob)
258 bundle2-input-part: "check:updated-heads" supported
255 bundle2-input-part: "check:updated-heads" supported
259 bundle2-input-part: total payload size * (glob)
256 bundle2-input-part: total payload size * (glob)
260 invalid branch cache (served): tip differs
261 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
257 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
262 adding changesets
258 adding changesets
263 add changeset ef1ea85a6374
259 add changeset ef1ea85a6374
@@ -317,7 +313,6 b' Empty [acl.allow]'
317 listing keys for "phases"
313 listing keys for "phases"
318 checking for updated bookmarks
314 checking for updated bookmarks
319 listing keys for "bookmarks"
315 listing keys for "bookmarks"
320 invalid branch cache (served): tip differs
321 listing keys for "bookmarks"
316 listing keys for "bookmarks"
322 3 changesets found
317 3 changesets found
323 list of changesets:
318 list of changesets:
@@ -337,7 +332,6 b' Empty [acl.allow]'
337 bundle2-input-part: total payload size * (glob)
332 bundle2-input-part: total payload size * (glob)
338 bundle2-input-part: "check:updated-heads" supported
333 bundle2-input-part: "check:updated-heads" supported
339 bundle2-input-part: total payload size * (glob)
334 bundle2-input-part: total payload size * (glob)
340 invalid branch cache (served): tip differs
341 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
335 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
342 adding changesets
336 adding changesets
343 add changeset ef1ea85a6374
337 add changeset ef1ea85a6374
@@ -388,7 +382,6 b' fred is allowed inside foo/'
388 listing keys for "phases"
382 listing keys for "phases"
389 checking for updated bookmarks
383 checking for updated bookmarks
390 listing keys for "bookmarks"
384 listing keys for "bookmarks"
391 invalid branch cache (served): tip differs
392 listing keys for "bookmarks"
385 listing keys for "bookmarks"
393 3 changesets found
386 3 changesets found
394 list of changesets:
387 list of changesets:
@@ -408,7 +401,6 b' fred is allowed inside foo/'
408 bundle2-input-part: total payload size * (glob)
401 bundle2-input-part: total payload size * (glob)
409 bundle2-input-part: "check:updated-heads" supported
402 bundle2-input-part: "check:updated-heads" supported
410 bundle2-input-part: total payload size * (glob)
403 bundle2-input-part: total payload size * (glob)
411 invalid branch cache (served): tip differs
412 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
404 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
413 adding changesets
405 adding changesets
414 add changeset ef1ea85a6374
406 add changeset ef1ea85a6374
@@ -463,7 +455,6 b' Empty [acl.deny]'
463 listing keys for "phases"
455 listing keys for "phases"
464 checking for updated bookmarks
456 checking for updated bookmarks
465 listing keys for "bookmarks"
457 listing keys for "bookmarks"
466 invalid branch cache (served): tip differs
467 listing keys for "bookmarks"
458 listing keys for "bookmarks"
468 3 changesets found
459 3 changesets found
469 list of changesets:
460 list of changesets:
@@ -483,7 +474,6 b' Empty [acl.deny]'
483 bundle2-input-part: total payload size * (glob)
474 bundle2-input-part: total payload size * (glob)
484 bundle2-input-part: "check:updated-heads" supported
475 bundle2-input-part: "check:updated-heads" supported
485 bundle2-input-part: total payload size * (glob)
476 bundle2-input-part: total payload size * (glob)
486 invalid branch cache (served): tip differs
487 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
477 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
488 adding changesets
478 adding changesets
489 add changeset ef1ea85a6374
479 add changeset ef1ea85a6374
@@ -535,7 +525,6 b' fred is allowed inside foo/, but not foo'
535 listing keys for "phases"
525 listing keys for "phases"
536 checking for updated bookmarks
526 checking for updated bookmarks
537 listing keys for "bookmarks"
527 listing keys for "bookmarks"
538 invalid branch cache (served): tip differs
539 listing keys for "bookmarks"
528 listing keys for "bookmarks"
540 3 changesets found
529 3 changesets found
541 list of changesets:
530 list of changesets:
@@ -555,7 +544,6 b' fred is allowed inside foo/, but not foo'
555 bundle2-input-part: total payload size * (glob)
544 bundle2-input-part: total payload size * (glob)
556 bundle2-input-part: "check:updated-heads" supported
545 bundle2-input-part: "check:updated-heads" supported
557 bundle2-input-part: total payload size * (glob)
546 bundle2-input-part: total payload size * (glob)
558 invalid branch cache (served): tip differs
559 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
547 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
560 adding changesets
548 adding changesets
561 add changeset ef1ea85a6374
549 add changeset ef1ea85a6374
@@ -612,7 +600,6 b' fred is allowed inside foo/, but not foo'
612 listing keys for "phases"
600 listing keys for "phases"
613 checking for updated bookmarks
601 checking for updated bookmarks
614 listing keys for "bookmarks"
602 listing keys for "bookmarks"
615 invalid branch cache (served): tip differs
616 listing keys for "bookmarks"
603 listing keys for "bookmarks"
617 3 changesets found
604 3 changesets found
618 list of changesets:
605 list of changesets:
@@ -632,7 +619,6 b' fred is allowed inside foo/, but not foo'
632 bundle2-input-part: total payload size * (glob)
619 bundle2-input-part: total payload size * (glob)
633 bundle2-input-part: "check:updated-heads" supported
620 bundle2-input-part: "check:updated-heads" supported
634 bundle2-input-part: total payload size * (glob)
621 bundle2-input-part: total payload size * (glob)
635 invalid branch cache (served): tip differs
636 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
622 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
637 adding changesets
623 adding changesets
638 add changeset ef1ea85a6374
624 add changeset ef1ea85a6374
@@ -686,7 +672,6 b' fred is allowed inside foo/, but not foo'
686 listing keys for "phases"
672 listing keys for "phases"
687 checking for updated bookmarks
673 checking for updated bookmarks
688 listing keys for "bookmarks"
674 listing keys for "bookmarks"
689 invalid branch cache (served): tip differs
690 listing keys for "bookmarks"
675 listing keys for "bookmarks"
691 3 changesets found
676 3 changesets found
692 list of changesets:
677 list of changesets:
@@ -706,7 +691,6 b' fred is allowed inside foo/, but not foo'
706 bundle2-input-part: total payload size * (glob)
691 bundle2-input-part: total payload size * (glob)
707 bundle2-input-part: "check:updated-heads" supported
692 bundle2-input-part: "check:updated-heads" supported
708 bundle2-input-part: total payload size * (glob)
693 bundle2-input-part: total payload size * (glob)
709 invalid branch cache (served): tip differs
710 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
694 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
711 adding changesets
695 adding changesets
712 add changeset ef1ea85a6374
696 add changeset ef1ea85a6374
@@ -761,7 +745,6 b' fred is not blocked from moving bookmark'
761 listing keys for "phases"
745 listing keys for "phases"
762 checking for updated bookmarks
746 checking for updated bookmarks
763 listing keys for "bookmarks"
747 listing keys for "bookmarks"
764 invalid branch cache (served): tip differs
765 listing keys for "bookmarks"
748 listing keys for "bookmarks"
766 1 changesets found
749 1 changesets found
767 list of changesets:
750 list of changesets:
@@ -783,7 +766,6 b' fred is not blocked from moving bookmark'
783 bundle2-input-part: total payload size * (glob)
766 bundle2-input-part: total payload size * (glob)
784 bundle2-input-part: "check:updated-heads" supported
767 bundle2-input-part: "check:updated-heads" supported
785 bundle2-input-part: total payload size * (glob)
768 bundle2-input-part: total payload size * (glob)
786 invalid branch cache (served): tip differs
787 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
769 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
788 adding changesets
770 adding changesets
789 add changeset ef1ea85a6374
771 add changeset ef1ea85a6374
@@ -849,7 +831,6 b' fred is not allowed to move bookmarks'
849 listing keys for "phases"
831 listing keys for "phases"
850 checking for updated bookmarks
832 checking for updated bookmarks
851 listing keys for "bookmarks"
833 listing keys for "bookmarks"
852 invalid branch cache (served): tip differs
853 listing keys for "bookmarks"
834 listing keys for "bookmarks"
854 1 changesets found
835 1 changesets found
855 list of changesets:
836 list of changesets:
@@ -871,7 +852,6 b' fred is not allowed to move bookmarks'
871 bundle2-input-part: total payload size * (glob)
852 bundle2-input-part: total payload size * (glob)
872 bundle2-input-part: "check:updated-heads" supported
853 bundle2-input-part: "check:updated-heads" supported
873 bundle2-input-part: total payload size * (glob)
854 bundle2-input-part: total payload size * (glob)
874 invalid branch cache (served): tip differs
875 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
855 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
876 adding changesets
856 adding changesets
877 add changeset ef1ea85a6374
857 add changeset ef1ea85a6374
@@ -938,7 +918,6 b' barney is allowed everywhere'
938 listing keys for "phases"
918 listing keys for "phases"
939 checking for updated bookmarks
919 checking for updated bookmarks
940 listing keys for "bookmarks"
920 listing keys for "bookmarks"
941 invalid branch cache (served): tip differs
942 listing keys for "bookmarks"
921 listing keys for "bookmarks"
943 3 changesets found
922 3 changesets found
944 list of changesets:
923 list of changesets:
@@ -958,7 +937,6 b' barney is allowed everywhere'
958 bundle2-input-part: total payload size * (glob)
937 bundle2-input-part: total payload size * (glob)
959 bundle2-input-part: "check:updated-heads" supported
938 bundle2-input-part: "check:updated-heads" supported
960 bundle2-input-part: total payload size * (glob)
939 bundle2-input-part: total payload size * (glob)
961 invalid branch cache (served): tip differs
962 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
940 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
963 adding changesets
941 adding changesets
964 add changeset ef1ea85a6374
942 add changeset ef1ea85a6374
@@ -1024,7 +1002,6 b' wilma can change files with a .txt exten'
1024 listing keys for "phases"
1002 listing keys for "phases"
1025 checking for updated bookmarks
1003 checking for updated bookmarks
1026 listing keys for "bookmarks"
1004 listing keys for "bookmarks"
1027 invalid branch cache (served): tip differs
1028 listing keys for "bookmarks"
1005 listing keys for "bookmarks"
1029 3 changesets found
1006 3 changesets found
1030 list of changesets:
1007 list of changesets:
@@ -1044,7 +1021,6 b' wilma can change files with a .txt exten'
1044 bundle2-input-part: total payload size * (glob)
1021 bundle2-input-part: total payload size * (glob)
1045 bundle2-input-part: "check:updated-heads" supported
1022 bundle2-input-part: "check:updated-heads" supported
1046 bundle2-input-part: total payload size * (glob)
1023 bundle2-input-part: total payload size * (glob)
1047 invalid branch cache (served): tip differs
1048 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1024 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1049 adding changesets
1025 adding changesets
1050 add changeset ef1ea85a6374
1026 add changeset ef1ea85a6374
@@ -1108,7 +1084,6 b' file specified by acl.config does not ex'
1108 listing keys for "phases"
1084 listing keys for "phases"
1109 checking for updated bookmarks
1085 checking for updated bookmarks
1110 listing keys for "bookmarks"
1086 listing keys for "bookmarks"
1111 invalid branch cache (served): tip differs
1112 listing keys for "bookmarks"
1087 listing keys for "bookmarks"
1113 3 changesets found
1088 3 changesets found
1114 list of changesets:
1089 list of changesets:
@@ -1128,7 +1103,6 b' file specified by acl.config does not ex'
1128 bundle2-input-part: total payload size * (glob)
1103 bundle2-input-part: total payload size * (glob)
1129 bundle2-input-part: "check:updated-heads" supported
1104 bundle2-input-part: "check:updated-heads" supported
1130 bundle2-input-part: total payload size * (glob)
1105 bundle2-input-part: total payload size * (glob)
1131 invalid branch cache (served): tip differs
1132 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1106 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1133 adding changesets
1107 adding changesets
1134 add changeset ef1ea85a6374
1108 add changeset ef1ea85a6374
@@ -1186,7 +1160,6 b' betty is allowed inside foo/ by a acl.co'
1186 listing keys for "phases"
1160 listing keys for "phases"
1187 checking for updated bookmarks
1161 checking for updated bookmarks
1188 listing keys for "bookmarks"
1162 listing keys for "bookmarks"
1189 invalid branch cache (served): tip differs
1190 listing keys for "bookmarks"
1163 listing keys for "bookmarks"
1191 3 changesets found
1164 3 changesets found
1192 list of changesets:
1165 list of changesets:
@@ -1206,7 +1179,6 b' betty is allowed inside foo/ by a acl.co'
1206 bundle2-input-part: total payload size * (glob)
1179 bundle2-input-part: total payload size * (glob)
1207 bundle2-input-part: "check:updated-heads" supported
1180 bundle2-input-part: "check:updated-heads" supported
1208 bundle2-input-part: total payload size * (glob)
1181 bundle2-input-part: total payload size * (glob)
1209 invalid branch cache (served): tip differs
1210 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1182 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1211 adding changesets
1183 adding changesets
1212 add changeset ef1ea85a6374
1184 add changeset ef1ea85a6374
@@ -1275,7 +1247,6 b' acl.config can set only [acl.allow]/[acl'
1275 listing keys for "phases"
1247 listing keys for "phases"
1276 checking for updated bookmarks
1248 checking for updated bookmarks
1277 listing keys for "bookmarks"
1249 listing keys for "bookmarks"
1278 invalid branch cache (served): tip differs
1279 listing keys for "bookmarks"
1250 listing keys for "bookmarks"
1280 3 changesets found
1251 3 changesets found
1281 list of changesets:
1252 list of changesets:
@@ -1295,7 +1266,6 b' acl.config can set only [acl.allow]/[acl'
1295 bundle2-input-part: total payload size * (glob)
1266 bundle2-input-part: total payload size * (glob)
1296 bundle2-input-part: "check:updated-heads" supported
1267 bundle2-input-part: "check:updated-heads" supported
1297 bundle2-input-part: total payload size * (glob)
1268 bundle2-input-part: total payload size * (glob)
1298 invalid branch cache (served): tip differs
1299 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1269 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1300 adding changesets
1270 adding changesets
1301 add changeset ef1ea85a6374
1271 add changeset ef1ea85a6374
@@ -1365,7 +1335,6 b' fred is always allowed'
1365 listing keys for "phases"
1335 listing keys for "phases"
1366 checking for updated bookmarks
1336 checking for updated bookmarks
1367 listing keys for "bookmarks"
1337 listing keys for "bookmarks"
1368 invalid branch cache (served): tip differs
1369 listing keys for "bookmarks"
1338 listing keys for "bookmarks"
1370 3 changesets found
1339 3 changesets found
1371 list of changesets:
1340 list of changesets:
@@ -1385,7 +1354,6 b' fred is always allowed'
1385 bundle2-input-part: total payload size * (glob)
1354 bundle2-input-part: total payload size * (glob)
1386 bundle2-input-part: "check:updated-heads" supported
1355 bundle2-input-part: "check:updated-heads" supported
1387 bundle2-input-part: total payload size * (glob)
1356 bundle2-input-part: total payload size * (glob)
1388 invalid branch cache (served): tip differs
1389 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1357 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1390 adding changesets
1358 adding changesets
1391 add changeset ef1ea85a6374
1359 add changeset ef1ea85a6374
@@ -1452,7 +1420,6 b' no one is allowed inside foo/Bar/'
1452 listing keys for "phases"
1420 listing keys for "phases"
1453 checking for updated bookmarks
1421 checking for updated bookmarks
1454 listing keys for "bookmarks"
1422 listing keys for "bookmarks"
1455 invalid branch cache (served): tip differs
1456 listing keys for "bookmarks"
1423 listing keys for "bookmarks"
1457 3 changesets found
1424 3 changesets found
1458 list of changesets:
1425 list of changesets:
@@ -1472,7 +1439,6 b' no one is allowed inside foo/Bar/'
1472 bundle2-input-part: total payload size * (glob)
1439 bundle2-input-part: total payload size * (glob)
1473 bundle2-input-part: "check:updated-heads" supported
1440 bundle2-input-part: "check:updated-heads" supported
1474 bundle2-input-part: total payload size * (glob)
1441 bundle2-input-part: total payload size * (glob)
1475 invalid branch cache (served): tip differs
1476 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1442 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1477 adding changesets
1443 adding changesets
1478 add changeset ef1ea85a6374
1444 add changeset ef1ea85a6374
@@ -1535,7 +1501,6 b' OS-level groups'
1535 listing keys for "phases"
1501 listing keys for "phases"
1536 checking for updated bookmarks
1502 checking for updated bookmarks
1537 listing keys for "bookmarks"
1503 listing keys for "bookmarks"
1538 invalid branch cache (served): tip differs
1539 listing keys for "bookmarks"
1504 listing keys for "bookmarks"
1540 3 changesets found
1505 3 changesets found
1541 list of changesets:
1506 list of changesets:
@@ -1555,7 +1520,6 b' OS-level groups'
1555 bundle2-input-part: total payload size * (glob)
1520 bundle2-input-part: total payload size * (glob)
1556 bundle2-input-part: "check:updated-heads" supported
1521 bundle2-input-part: "check:updated-heads" supported
1557 bundle2-input-part: total payload size * (glob)
1522 bundle2-input-part: total payload size * (glob)
1558 invalid branch cache (served): tip differs
1559 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1523 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1560 adding changesets
1524 adding changesets
1561 add changeset ef1ea85a6374
1525 add changeset ef1ea85a6374
@@ -1622,7 +1586,6 b' OS-level groups'
1622 listing keys for "phases"
1586 listing keys for "phases"
1623 checking for updated bookmarks
1587 checking for updated bookmarks
1624 listing keys for "bookmarks"
1588 listing keys for "bookmarks"
1625 invalid branch cache (served): tip differs
1626 listing keys for "bookmarks"
1589 listing keys for "bookmarks"
1627 3 changesets found
1590 3 changesets found
1628 list of changesets:
1591 list of changesets:
@@ -1642,7 +1605,6 b' OS-level groups'
1642 bundle2-input-part: total payload size * (glob)
1605 bundle2-input-part: total payload size * (glob)
1643 bundle2-input-part: "check:updated-heads" supported
1606 bundle2-input-part: "check:updated-heads" supported
1644 bundle2-input-part: total payload size * (glob)
1607 bundle2-input-part: total payload size * (glob)
1645 invalid branch cache (served): tip differs
1646 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1608 bundle2-input-part: "changegroup" (params: 1 mandatory) supported
1647 adding changesets
1609 adding changesets
1648 add changeset ef1ea85a6374
1610 add changeset ef1ea85a6374
@@ -188,13 +188,11 b' backup bundles get logged'
188 $ hg strip tip
188 $ hg strip tip
189 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
189 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
190 saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
190 saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
191 $ hg blackbox -l 6
191 $ hg blackbox -l 4
192 1970-01-01 00:00:00.000 bob @73f6ee326b27d820b0472f1a825e3a50f3dc489b (5000)> strip tip
192 1970-01-01 00:00:00.000 bob @73f6ee326b27d820b0472f1a825e3a50f3dc489b (5000)> strip tip
193 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg
193 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg
194 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated branch cache (base) in * seconds (glob)
195 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote branch cache (base) with 1 labels and 2 nodes
196 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> strip tip exited 0 after * seconds (glob)
194 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> strip tip exited 0 after * seconds (glob)
197 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6
195 1970-01-01 00:00:00.000 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 4
198
196
199 extension and python hooks - use the eol extension for a pythonhook
197 extension and python hooks - use the eol extension for a pythonhook
200
198
@@ -43,11 +43,9 b' older one have been actively deleted.'
43
43
44 $ ls -1 .hg/cache/branch?*
44 $ ls -1 .hg/cache/branch?*
45 .hg/cache/branch2-base
45 .hg/cache/branch2-base
46 .hg/cache/branch2-served
46 $ cat .hg/cache/branch?-base
47 $ cat .hg/cache/branch?-served
47 7ab0a3bd758a58b9f79557ce708533e627776cce 0
48 222ae9789a75703f9836e44de7db179cbfd420ee 2
48 7ab0a3bd758a58b9f79557ce708533e627776cce o default
49 a3498d6e39376d2456425dd8c692367bdbf00fa2 o default
50 222ae9789a75703f9836e44de7db179cbfd420ee o default
51
49
52 We do a new commit and we get a new valid branchmap for the served version
50 We do a new commit and we get a new valid branchmap for the served version
53
51
General Comments 0
You need to be logged in to leave comments. Login now