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