Show More
@@ -608,7 +608,14 b' class RevlogStoreEntry(BaseStoreEntry):' | |||||
608 | for ext in sorted(self._details, key=_ext_key): |
|
608 | for ext in sorted(self._details, key=_ext_key): | |
609 | path = self._path_prefix + ext |
|
609 | path = self._path_prefix + ext | |
610 | data = self._details[ext] |
|
610 | data = self._details[ext] | |
611 | self._files.append(StoreFile(unencoded_path=path, **data)) |
|
611 | # files that are "volatile" and might change between | |
|
612 | # listing and streaming | |||
|
613 | # | |||
|
614 | # note: the ".nd" file are nodemap data and won't "change" | |||
|
615 | # but they might be deleted. | |||
|
616 | volatile = ext.endswith(REVLOG_FILES_VOLATILE_EXT) | |||
|
617 | f = StoreFile(unencoded_path=path, is_volatile=volatile, **data) | |||
|
618 | self._files.append(f) | |||
612 | return self._files |
|
619 | return self._files | |
613 |
|
620 | |||
614 | def get_streams( |
|
621 | def get_streams( | |
@@ -796,7 +803,6 b' class basicstore:' | |||||
796 | revlog_target_id += b'/' |
|
803 | revlog_target_id += b'/' | |
797 | for ext, (t, s) in sorted(details.items()): |
|
804 | for ext, (t, s) in sorted(details.items()): | |
798 | file_details[ext] = { |
|
805 | file_details[ext] = { | |
799 | 'is_volatile': bool(t & FILEFLAGS_VOLATILE), |
|
|||
800 | 'file_size': s, |
|
806 | 'file_size': s, | |
801 | } |
|
807 | } | |
802 | yield RevlogStoreEntry( |
|
808 | yield RevlogStoreEntry( | |
@@ -852,7 +858,6 b' class basicstore:' | |||||
852 | file_details = {} |
|
858 | file_details = {} | |
853 | for ext, (t, s) in details.items(): |
|
859 | for ext, (t, s) in details.items(): | |
854 | file_details[ext] = { |
|
860 | file_details[ext] = { | |
855 | 'is_volatile': bool(t & FILEFLAGS_VOLATILE), |
|
|||
856 | 'file_size': s, |
|
861 | 'file_size': s, | |
857 | } |
|
862 | } | |
858 | yield RevlogStoreEntry( |
|
863 | yield RevlogStoreEntry( | |
@@ -1155,9 +1160,7 b' class fncachestore(basicstore):' | |||||
1155 | # unreachable |
|
1160 | # unreachable | |
1156 | assert False, revlog |
|
1161 | assert False, revlog | |
1157 | for ext, t in details.items(): |
|
1162 | for ext, t in details.items(): | |
1158 | file_details[ext] = { |
|
1163 | file_details[ext] = {} | |
1159 | 'is_volatile': bool(t & FILEFLAGS_VOLATILE), |
|
|||
1160 | } |
|
|||
1161 | entry = RevlogStoreEntry( |
|
1164 | entry = RevlogStoreEntry( | |
1162 | path_prefix=revlog, |
|
1165 | path_prefix=revlog, | |
1163 | revlog_type=rl_type, |
|
1166 | revlog_type=rl_type, |
General Comments 0
You need to be logged in to leave comments.
Login now