mercurial/context.py
changeset 50131 e5f5f1c1c452
parent 50130 9e1debbb477e
child 50133 21b6ce3ade35
--- a/mercurial/context.py	Tue Feb 21 16:20:11 2023 +0100
+++ b/mercurial/context.py	Tue Feb 21 22:14:12 2023 +0100
@@ -1889,7 +1889,7 @@
                         for ps in poststatus:
                             ps(self, status)
             except error.LockError:
-                pass
+                dirstate.invalidate()
             finally:
                 # Even if the wlock couldn't be grabbed, clear out the list.
                 self._repo.clearpostdsstatus()