##// END OF EJS Templates
store: only access is_volatile information through the file object...
marmoute -
r51369:2b2284cf default
parent child Browse files
Show More
@@ -460,7 +460,7 b' class BaseStoreEntry:'
460 This is returned by `store.walk` and represent some data in the store."""
460 This is returned by `store.walk` and represent some data in the store."""
461
461
462 unencoded_path = attr.ib()
462 unencoded_path = attr.ib()
463 is_volatile = attr.ib(default=False)
463 _is_volatile = attr.ib(default=False)
464 _file_size = attr.ib(default=None)
464 _file_size = attr.ib(default=None)
465
465
466 def __init__(
466 def __init__(
@@ -470,7 +470,7 b' class BaseStoreEntry:'
470 file_size=None,
470 file_size=None,
471 ):
471 ):
472 self.unencoded_path = unencoded_path
472 self.unencoded_path = unencoded_path
473 self.is_volatile = is_volatile
473 self._is_volatile = is_volatile
474 self._file_size = file_size
474 self._file_size = file_size
475
475
476 def files(self):
476 def files(self):
@@ -478,7 +478,7 b' class BaseStoreEntry:'
478 StoreFile(
478 StoreFile(
479 unencoded_path=self.unencoded_path,
479 unencoded_path=self.unencoded_path,
480 file_size=self._file_size,
480 file_size=self._file_size,
481 is_volatile=self.is_volatile,
481 is_volatile=self._is_volatile,
482 )
482 )
483 ]
483 ]
484
484
General Comments 0
You need to be logged in to leave comments. Login now