mercurial/manifest.py
changeset 39322 5886384d1ac5
parent 39321 52860f52ed13
child 39515 93486cc46125
equal deleted inserted replaced
39321:52860f52ed13 39322:5886384d1ac5
  1640         if self._data is None:
  1640         if self._data is None:
  1641             if self._node == nullid:
  1641             if self._node == nullid:
  1642                 self._data = manifestdict()
  1642                 self._data = manifestdict()
  1643             else:
  1643             else:
  1644                 store = self._storage()
  1644                 store = self._storage()
  1645                 # TODO accessing non-public API.
  1645                 if self._node in store.fulltextcache:
  1646                 if self._node in store._fulltextcache:
  1646                     text = pycompat.bytestr(store.fulltextcache[self._node])
  1647                     text = pycompat.bytestr(store._fulltextcache[self._node])
       
  1648                 else:
  1647                 else:
  1649                     text = store.revision(self._node)
  1648                     text = store.revision(self._node)
  1650                     arraytext = bytearray(text)
  1649                     arraytext = bytearray(text)
  1651                     store._fulltextcache[self._node] = arraytext
  1650                     store.fulltextcache[self._node] = arraytext
  1652                 self._data = manifestdict(text)
  1651                 self._data = manifestdict(text)
  1653         return self._data
  1652         return self._data
  1654 
  1653 
  1655     def readfast(self, shallow=False):
  1654     def readfast(self, shallow=False):
  1656         '''Calls either readdelta or read, based on which would be less work.
  1655         '''Calls either readdelta or read, based on which would be less work.