changeset 39322:5886384d1ac5

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 15 Aug 2018 20:23:45 +0000
parents 52860f52ed13
children c11e8894b9ca
files mercurial/manifest.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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