diff mercurial/dirstate.py @ 50105:2323b74f927b

dirstate: invalidate on all exceptions Previously, we would miss SystemExit, KeyboardInterrupt etc. This "fix" on the bug tested in "test-largefiles-update.t" by preventing the precisely tested situation to happens at all. However this reveal a similar bug with a different timing. I have not been able to deal with that pre-existing bug so far. So I updated the test to point that out.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 21 Feb 2023 00:10:20 +0100
parents 0f0880c8a7e5
children cdbd5f990596
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Feb 21 01:09:11 2023 +0100
+++ b/mercurial/dirstate.py	Tue Feb 21 00:10:20 2023 +0100
@@ -191,7 +191,7 @@
         self._changing_level += 1
         try:
             yield
-        except Exception:
+        except:  # re-raises
             self.invalidate()
             raise
         finally: