# HG changeset patch # User Gregory Szorc # Date 1450668706 28800 # 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 -r 072a675c51f2 -r f888676a23d0 mercurial/manifest.py --- a/mercurial/manifest.py Sun Dec 20 17:48:20 2015 -0800 +++ b/mercurial/manifest.py Sun Dec 20 19:31:46 2015 -0800 @@ -1035,3 +1035,8 @@ # 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}