# HG changeset patch # User Pierre-Yves David # Date 1676500144 -3600 # Node ID 1f369ca9e34c69c6a2d654672b21cbc16fdb79db # Parent c5ef535e274e2d0afeb8872ffb9a9d95f39f5047 status: fix post status invalidation If the dirstate changed under us, we should throw away what we have a reload it, should we not ? diff -r c5ef535e274e -r 1f369ca9e34c mercurial/context.py --- a/mercurial/context.py Wed Feb 15 23:28:20 2023 +0100 +++ b/mercurial/context.py Wed Feb 15 23:29:04 2023 +0100 @@ -1897,6 +1897,8 @@ self._repo.ui.debug( b'skip updating dirstate: identity mismatch\n' ) + # throw away anything we have. + dirstate.invalidate() except error.LockError: pass finally: