Mercurial > hg
diff mercurial/context.py @ 50056:1f369ca9e34c
status: fix post status invalidation
If the dirstate changed under us, we should throw away what we have a reload it,
should we not ?
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Feb 2023 23:29:04 +0100 |
parents | c5ef535e274e |
children | 9e1debbb477e |
line wrap: on
line diff
--- 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: