Mercurial > hg-stable
changeset 50677:cdb471c8ebcf
store: explicitly pass file_size when creating StoreFile
A small cleanup before large cleanup in the next patch.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 30 May 2023 16:35:10 +0100 |
parents | 6b522a9e7451 |
children | 11562d72cb7b |
files | mercurial/store.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py Tue May 30 16:33:28 2023 +0100 +++ b/mercurial/store.py Tue May 30 16:35:10 2023 +0100 @@ -614,7 +614,8 @@ # 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