# HG changeset patch # User Gregory Szorc # Date 2015-12-21 03:31:46 # Node ID f888676a23d09d63d81c45ce2fcc1050980b3a8d # Parent 072a675c51f20cfcc856a5353454a4d6e77f12fc manifest: implement clearcaches() The manifest implements its own caches in addition to revlog's. Extend the base clearcaches() to wipe these as well. diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -1035,3 +1035,8 @@ class manifest(revlog.revlog): # Save nodeid so parent manifest can calculate its nodeid m.setnode(n) return n + + def clearcaches(self): + super(manifest, self).clearcaches() + self._mancache.clear() + self._dirlogcache = {'': self}