def _set_cache_(self, attr): if attr == "_cache": # Set the data when we need it ostream = self.odb.stream(self.binsha) self._cache = tree_entries_from_data(ostream.read()) else: super(Tree, self)._set_cache_(attr)
def _set_cache_(self, attr): if attr == "_cache": # Set the data when we need it ostream = self.repo.odb.stream(self.binsha) self._cache = tree_entries_from_data(ostream.read()) else: super(Tree, self)._set_cache_(attr)
def _deserialize(self, stream): self._cache = tree_entries_from_data(stream.read()) return self