revlog.strip should clear the chunkcache
authormason@suse.com
Thu, 09 Feb 2006 17:07:20 -0600
changeset 1711 8959700c2b19
parent 1710 c65113f3627a
child 1712 21dcf38e5d7d
revlog.strip should clear the chunkcache The chunkcache isn't valid after a strip, it needs to be cleared out.
mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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:]