diff mercurial/context.py @ 32552:6ae068f801e3

context: do not cache manifestctx This will make sure when ctx.repo.manifestlog changes, a correct new manifestctx is returned. repo.manifestlog takes care of caching so the manifestctx won't be reconstructed every time.
author Jun Wu <quark@fb.com>
date Thu, 25 May 2017 17:20:43 -0700
parents 1df80eff24cf
children c0b16b801687
line wrap: on
line diff
--- a/mercurial/context.py	Thu May 25 17:06:32 2017 -0700
+++ b/mercurial/context.py	Thu May 25 17:20:43 2017 -0700
@@ -551,7 +551,7 @@
     def _manifest(self):
         return self._manifestctx.read()
 
-    @propertycache
+    @property
     def _manifestctx(self):
         return self._repo.manifestlog[self._changeset.manifest]
 
@@ -2314,7 +2314,7 @@
     def manifestnode(self):
         return self._manifestnode
 
-    @propertycache
+    @property
     def _manifestctx(self):
         return self._repo.manifestlog[self._manifestnode]