# HG changeset patch # User Jun Wu # Date 1495758043 25200 # Node ID 6ae068f801e3181d0323b8db09660064c34f2db3 # Parent bb628fc85b0e6fd340ea15ce5fcc7e91e180a039 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. diff -r bb628fc85b0e -r 6ae068f801e3 mercurial/context.py --- 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] diff -r bb628fc85b0e -r 6ae068f801e3 tests/test-context.py.out --- a/tests/test-context.py.out Thu May 25 17:06:32 2017 -0700 +++ b/tests/test-context.py.out Thu May 25 17:20:43 2017 -0700 @@ -47,6 +47,4 @@ == commit with manifestlog invalidated commit 1: 2efe531a913fa648867ab8824360371679d05a65 commit 2: 2caca91f6362020334384ebe27bae67315298abf -cannot read data: LookupError('Q\xa3L\xa5Ou\x8f\xce8\xda