manifest: use fulltextcache instead of _fulltextcache
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 15 Aug 2018 20:23:45 +0000
changeset 39322 5886384d1ac5
parent 39321 52860f52ed13
child 39323 c11e8894b9ca
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
mercurial/manifest.py
--- 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