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:
Jun Wu 2021-09-24 10:56:54 -07:00 committed by Facebook GitHub Bot
parent 10e7ff0d3e
commit 4ed6ba36ac

View File

@ -2115,6 +2115,8 @@ class localrepository(object):
# extension should hook this to invalidate its caches
self.invalidate()
self.invalidatedirstate()
self.invalidatemetalog()
self.invalidatechangelog()
def _refreshfilecachestats(self, tr):
"""Reload stats of cached files so that they are flagged as valid"""