mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
ce2485979c
commit
14cb4382e3
@ -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:]
|
||||
|
Loading…
Reference in New Issue
Block a user