manifest: use fulltextcache instead of _fulltextcache
fulltextcache is part of the documented interface and is aliased
to _fulltextcache.
Differential Revision: https://phab.mercurial-scm.org/D4394
--- a/mercurial/manifest.py Wed Aug 15 19:58:06 2018 +0000
+++ b/mercurial/manifest.py Wed Aug 15 20:23:45 2018 +0000
@@ -1642,13 +1642,12 @@
self._data = manifestdict()
else:
store = self._storage()
- # TODO accessing non-public API.
- if self._node in store._fulltextcache:
- text = pycompat.bytestr(store._fulltextcache[self._node])
+ if self._node in store.fulltextcache:
+ text = pycompat.bytestr(store.fulltextcache[self._node])
else:
text = store.revision(self._node)
arraytext = bytearray(text)
- store._fulltextcache[self._node] = arraytext
+ store.fulltextcache[self._node] = arraytext
self._data = manifestdict(text)
return self._data