mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
localrepo: make invalidateall drop more states
Summary: This is subtle. But fbhistedit (providing `exec` support) depends on it invaliding everything related to repo to trigger state reloading after executing a command (which could be `hg`). Reviewed By: markbt Differential Revision: D30974284 fbshipit-source-id: b033d81565dcf61104e4d30ecd7d48c33d6d79a4
This commit is contained in:
parent
10e7ff0d3e
commit
4ed6ba36ac
@ -2115,6 +2115,8 @@ class localrepository(object):
|
|||||||
# extension should hook this to invalidate its caches
|
# extension should hook this to invalidate its caches
|
||||||
self.invalidate()
|
self.invalidate()
|
||||||
self.invalidatedirstate()
|
self.invalidatedirstate()
|
||||||
|
self.invalidatemetalog()
|
||||||
|
self.invalidatechangelog()
|
||||||
|
|
||||||
def _refreshfilecachestats(self, tr):
|
def _refreshfilecachestats(self, tr):
|
||||||
"""Reload stats of cached files so that they are flagged as valid"""
|
"""Reload stats of cached files so that they are flagged as valid"""
|
||||||
|
Loading…
Reference in New Issue
Block a user