mercurial/store.py
changeset 50509 7d4d2a160cf5
parent 50508 c37450a5f1dc
child 50510 2b2284cf949b
--- a/mercurial/store.py	Mon May 15 08:57:14 2023 +0200
+++ b/mercurial/store.py	Mon May 15 08:57:30 2023 +0200
@@ -461,7 +461,7 @@
 
     unencoded_path = attr.ib()
     is_volatile = attr.ib(default=False)
-    file_size = attr.ib(default=None)
+    _file_size = attr.ib(default=None)
 
     def __init__(
         self,
@@ -471,13 +471,13 @@
     ):
         self.unencoded_path = unencoded_path
         self.is_volatile = is_volatile
-        self.file_size = file_size
+        self._file_size = file_size
 
     def files(self):
         return [
             StoreFile(
                 unencoded_path=self.unencoded_path,
-                file_size=self.file_size,
+                file_size=self._file_size,
                 is_volatile=self.is_volatile,
             )
         ]