changeset 39273:071f97d03acb

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 10 Aug 2018 15:06:41 -0700
parents 73cf21b2e8a6
children 61700d525a3b
files mercurial/manifest.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)