manifest: implement clearcaches()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Dec 2015 19:31:46 -0800
changeset 27466 f888676a23d0
parent 27465 072a675c51f2
child 27467 fbe292b591ec
manifest: implement clearcaches() The manifest implements its own caches in addition to revlog's. Extend the base clearcaches() to wipe these as well.
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}