manifest: backed out changeset bb3281b3fcaa
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 10 Sep 2016 01:42:05 +0200
changeset 29916 8a658b8b795a
parent 29915 548fa75cdb07
child 29917 f32f8bf5dc4c
manifest: backed out changeset bb3281b3fcaa There is some suspicious failure in evolution tests. This changeset was supposed to be dropped until we investigate.
mercurial/bundlerepo.py
mercurial/manifest.py
--- a/mercurial/bundlerepo.py	Sat Sep 10 01:41:38 2016 +0200
+++ b/mercurial/bundlerepo.py	Sat Sep 10 01:42:05 2016 +0200
@@ -204,8 +204,8 @@
         if isinstance(node, int):
             node = self.node(node)
 
-        if node in self.fulltextcache:
-            result = self.fulltextcache[node].tostring()
+        if node in self._mancache:
+            result = self._mancache[node].text()
         else:
             result = manifest.manifest.revision(self, nodeorrev)
         return result
--- a/mercurial/manifest.py	Sat Sep 10 01:41:38 2016 +0200
+++ b/mercurial/manifest.py	Sat Sep 10 01:42:05 2016 +0200
@@ -1130,11 +1130,7 @@
         if node == revlog.nullid:
             return self._newmanifest() # don't upset local cache
         if node in self._mancache:
-            cached = self._mancache[node]
-            if (isinstance(cached, manifestctx) or
-                isinstance(cached, treemanifestctx)):
-                cached = cached.read()
-            return cached
+            return self._mancache[node]
         if self._treeondisk:
             def gettext():
                 return self.revision(node)