status: fix post status invalidation
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Feb 2023 23:29:04 +0100
changeset 50056 1f369ca9e34c
parent 50055 c5ef535e274e
child 50057 cf8b9c80d67c
status: fix post status invalidation If the dirstate changed under us, we should throw away what we have a reload it, should we not ?
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: