revlog.strip should clear the chunkcache

The chunkcache isn't valid after a strip, it needs to be cleared out.
This commit is contained in:
mason@suse.com 2006-02-09 17:07:20 -06:00
parent ce2485979c
commit 14cb4382e3

View File

@ -828,6 +828,7 @@ class revlog(object):
# then reset internal state in memory to forget those revisions
self.cache = None
self.chunkcache = None
for p in self.index[rev:]:
del self.nodemap[p[6]]
del self.index[rev:]