manifest: rename manifestlog._treeinmem to ._treemanifests
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 10 Aug 2018 15:06:41 -0700
changeset 39273 071f97d03acb
parent 39272 73cf21b2e8a6
child 39274 61700d525a3b
manifest: rename manifestlog._treeinmem to ._treemanifests Not sure what "inmem" was supposed to indicate. This object is an interface to manifest data on disk as well as "in memory" (assuming that's what "inmem" means). Differential Revision: https://phab.mercurial-scm.org/D4278
mercurial/manifest.py
--- a/mercurial/manifest.py	Fri Aug 10 15:01:06 2018 -0700
+++ b/mercurial/manifest.py	Fri Aug 10 15:06:41 2018 -0700
@@ -1418,7 +1418,8 @@
         if opts is not None:
             usetreemanifest = opts.get('treemanifest', usetreemanifest)
             cachesize = opts.get('manifestcachesize', cachesize)
-        self._treeinmem = usetreemanifest
+
+        self._treemanifests = usetreemanifest
 
         self._revlog = repo._constructmanifest()
         self._revlog._setupmanifestcachehooks(repo)
@@ -1466,7 +1467,7 @@
                 if node not in self._revlog.nodemap:
                     raise LookupError(node, self._revlog.indexfile,
                                       _('no node'))
-            if self._treeinmem:
+            if self._treemanifests:
                 m = treemanifestctx(self, '', node)
             else:
                 m = manifestctx(self, node)