diff mercurial/bundlerepo.py @ 29834:27c0792e834c

manifest: break mancache into two caches The old manifest cache cached both the inmemory representation and the raw text. As part of the manifest refactor we want to separate the storage format from the in memory representation, so let's split this cache into two caches. This will let other manifest implementations participate in the in memory cache, while allowing the revlog based implementations to still depend on the full text caching where necessary.
author Durham Goode <durham@fb.com>
date Wed, 17 Aug 2016 13:25:13 -0700
parents 55d341877316
children bb3281b3fcaa
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Thu Aug 18 11:32:02 2016 -0400
+++ b/mercurial/bundlerepo.py	Wed Aug 17 13:25:13 2016 -0700
@@ -205,7 +205,7 @@
             node = self.node(node)
 
         if node in self._mancache:
-            result = self._mancache[node][0].text()
+            result = self._mancache[node].text()
         else:
             result = manifest.manifest.revision(self, nodeorrev)
         return result