Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def _deserialize(self, stream):
     self._cache = tree_entries_from_data(stream.read())
     return self
Esempio n. 4
0
 def _deserialize(self, stream):
     self._cache = tree_entries_from_data(stream.read())
     return self