# HG changeset patch # User Pierre-Yves David # Date 1684133865 -7200 # Node ID 2b2284cf949b3e81db4458419d615ac0a38462d5 # Parent 7d4d2a160cf5e39de9be975ac0db89c67cf8348d store: only access is_volatile information through the file object This make sure other code only access this information through the proper API, and it prepare for store entries to be able to agregate multiple files. diff -r 7d4d2a160cf5 -r 2b2284cf949b mercurial/store.py --- a/mercurial/store.py Mon May 15 08:57:30 2023 +0200 +++ b/mercurial/store.py Mon May 15 08:57:45 2023 +0200 @@ -460,7 +460,7 @@ This is returned by `store.walk` and represent some data in the store.""" unencoded_path = attr.ib() - is_volatile = attr.ib(default=False) + _is_volatile = attr.ib(default=False) _file_size = attr.ib(default=None) def __init__( @@ -470,7 +470,7 @@ file_size=None, ): self.unencoded_path = unencoded_path - self.is_volatile = is_volatile + self._is_volatile = is_volatile self._file_size = file_size def files(self): @@ -478,7 +478,7 @@ StoreFile( unencoded_path=self.unencoded_path, file_size=self._file_size, - is_volatile=self.is_volatile, + is_volatile=self._is_volatile, ) ]