##// END OF EJS Templates
store: yield phases before changelog...
marmoute -
r51406:5a62d56e default
parent child Browse files
Show More
@@ -686,6 +686,12 b' class basicstore:'
686 )
686 )
687
687
688 def top_entries(self, phase=False) -> Generator[BaseStoreEntry, None, None]:
688 def top_entries(self, phase=False) -> Generator[BaseStoreEntry, None, None]:
689 if phase and self.vfs.exists(b'phaseroots'):
690 yield SimpleStoreEntry(
691 entry_path=b'phaseroots',
692 is_volatile=True,
693 )
694
689 files = reversed(self._walk(b'', False))
695 files = reversed(self._walk(b'', False))
690
696
691 changelogs = collections.defaultdict(dict)
697 changelogs = collections.defaultdict(dict)
@@ -725,11 +731,6 b' class basicstore:'
725 target_id=b'',
731 target_id=b'',
726 details=file_details,
732 details=file_details,
727 )
733 )
728 if phase and self.vfs.exists(b'phaseroots'):
729 yield SimpleStoreEntry(
730 entry_path=b'phaseroots',
731 is_volatile=True,
732 )
733
734
734 def walk(
735 def walk(
735 self, matcher=None, phase=False
736 self, matcher=None, phase=False
@@ -82,9 +82,9 b' Test that we can apply the bundle as a s'
82 adding [s] data/C.i (66 bytes)
82 adding [s] data/C.i (66 bytes)
83 adding [s] data/D.i (66 bytes)
83 adding [s] data/D.i (66 bytes)
84 adding [s] data/E.i (66 bytes)
84 adding [s] data/E.i (66 bytes)
85 adding [s] phaseroots (43 bytes)
85 adding [s] 00manifest.i (584 bytes)
86 adding [s] 00manifest.i (584 bytes)
86 adding [s] 00changelog.i (595 bytes)
87 adding [s] 00changelog.i (595 bytes)
87 adding [s] phaseroots (43 bytes)
88 adding [c] branch2-served (94 bytes)
88 adding [c] branch2-served (94 bytes)
89 adding [c] rbc-names-v1 (7 bytes)
89 adding [c] rbc-names-v1 (7 bytes)
90 adding [c] rbc-revs-v1 (40 bytes)
90 adding [c] rbc-revs-v1 (40 bytes)
@@ -139,9 +139,9 b' Test that we can apply the bundle as a s'
139 adding [s] data/C.i (66 bytes)
139 adding [s] data/C.i (66 bytes)
140 adding [s] data/D.i (66 bytes)
140 adding [s] data/D.i (66 bytes)
141 adding [s] data/E.i (66 bytes)
141 adding [s] data/E.i (66 bytes)
142 adding [s] phaseroots (43 bytes)
142 adding [s] 00manifest.i (584 bytes)
143 adding [s] 00manifest.i (584 bytes)
143 adding [s] 00changelog.i (595 bytes)
144 adding [s] 00changelog.i (595 bytes)
144 adding [s] phaseroots (43 bytes)
145 adding [c] branch2-served (94 bytes)
145 adding [c] branch2-served (94 bytes)
146 adding [c] rbc-names-v1 (7 bytes)
146 adding [c] rbc-names-v1 (7 bytes)
147 adding [c] rbc-revs-v1 (40 bytes)
147 adding [c] rbc-revs-v1 (40 bytes)
General Comments 0
You need to be logged in to leave comments. Login now