# HG changeset patch # User Pierre-Yves David # Date 2023-05-30 15:35:10 # Node ID cdb471c8ebcfed65234a644539d0b0845c196fcc # Parent 6b522a9e745190ce83d7f8e3bae1d85fc6b4c819 store: explicitly pass file_size when creating StoreFile A small cleanup before large cleanup in the next patch. diff --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -614,7 +614,8 @@ class RevlogStoreEntry(BaseStoreEntry): # note: the ".nd" file are nodemap data and won't "change" # but they might be deleted. volatile = ext.endswith(REVLOG_FILES_VOLATILE_EXT) - f = StoreFile(unencoded_path=path, is_volatile=volatile, **data) + file_size = data.get('file_size') + f = StoreFile(path, file_size, volatile) self._files.append(f) return self._files