D1244: overlayworkingctx: invalidate the manifest cache when changing parents
phillco (Phil Cohen)
phabricator at mercurial-scm.org
Fri Dec 8 15:39:49 EST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG777cb4497d8d: overlayworkingctx: invalidate the manifest cache when changing parents (authored by phillco, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1244?vs=4258&id=4273
REVISION DETAIL
https://phab.mercurial-scm.org/D1244
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1999,6 +1999,10 @@
def setbase(self, wrappedctx):
self._wrappedctx = wrappedctx
self._parents = [wrappedctx]
+ # Drop old manifest cache as it is now out of date.
+ # This is necessary when, e.g., rebasing several nodes with one
+ # ``overlayworkingctx`` (e.g. with --collapse).
+ util.clearcachedproperty(self, '_manifest')
def data(self, path):
if self.isdirty(path):
To: phillco, #hg-reviewers, durin42, dlax
Cc: dlax, mercurial-devel
More information about the Mercurial-devel
mailing list