##// END OF EJS Templates
store: have the revlog determine which files are volatile itself...
marmoute -
r51561:6b522a9e default
parent child Browse files
Show More
@@ -608,7 +608,14 b' class RevlogStoreEntry(BaseStoreEntry):'
608 608 for ext in sorted(self._details, key=_ext_key):
609 609 path = self._path_prefix + ext
610 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 619 return self._files
613 620
614 621 def get_streams(
@@ -796,7 +803,6 b' class basicstore:'
796 803 revlog_target_id += b'/'
797 804 for ext, (t, s) in sorted(details.items()):
798 805 file_details[ext] = {
799 'is_volatile': bool(t & FILEFLAGS_VOLATILE),
800 806 'file_size': s,
801 807 }
802 808 yield RevlogStoreEntry(
@@ -852,7 +858,6 b' class basicstore:'
852 858 file_details = {}
853 859 for ext, (t, s) in details.items():
854 860 file_details[ext] = {
855 'is_volatile': bool(t & FILEFLAGS_VOLATILE),
856 861 'file_size': s,
857 862 }
858 863 yield RevlogStoreEntry(
@@ -1155,9 +1160,7 b' class fncachestore(basicstore):'
1155 1160 # unreachable
1156 1161 assert False, revlog
1157 1162 for ext, t in details.items():
1158 file_details[ext] = {
1159 'is_volatile': bool(t & FILEFLAGS_VOLATILE),
1160 }
1163 file_details[ext] = {}
1161 1164 entry = RevlogStoreEntry(
1162 1165 path_prefix=revlog,
1163 1166 revlog_type=rl_type,
General Comments 0
You need to be logged in to leave comments. Login now