comparison mercurial/revlog.py @ 1711:8959700c2b19

revlog.strip should clear the chunkcache The chunkcache isn't valid after a strip, it needs to be cleared out.
author mason@suse.com
date Thu, 09 Feb 2006 17:07:20 -0600
parents daff3ef0de8d
children d457fec76ab0
comparison
equal deleted inserted replaced
1710:c65113f3627a 1711:8959700c2b19
826 end = rev * struct.calcsize(indexformat) 826 end = rev * struct.calcsize(indexformat)
827 self.opener(self.indexfile, "a").truncate(end) 827 self.opener(self.indexfile, "a").truncate(end)
828 828
829 # then reset internal state in memory to forget those revisions 829 # then reset internal state in memory to forget those revisions
830 self.cache = None 830 self.cache = None
831 self.chunkcache = None
831 for p in self.index[rev:]: 832 for p in self.index[rev:]:
832 del self.nodemap[p[6]] 833 del self.nodemap[p[6]]
833 del self.index[rev:] 834 del self.index[rev:]
834 835
835 # truncating the lazyindex also truncates the lazymap. 836 # truncating the lazyindex also truncates the lazymap.