Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 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 | c59647c6694d |
children | 2df7f5c09c34 |
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}