Mercurial > hg
changeset 27466:f888676a23d0
manifest: implement clearcaches()
The manifest implements its own caches in addition to revlog's. Extend
the base clearcaches() to wipe these as well.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Dec 2015 19:31:46 -0800 |
parents | 072a675c51f2 |
children | fbe292b591ec |
files | mercurial/manifest.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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}