--- a/mercurial/dirstatemap.py Thu Oct 03 00:31:25 2024 +0200
+++ b/mercurial/dirstatemap.py Mon Oct 14 14:14:21 2024 +0200
@@ -167,6 +167,7 @@
return fp
def _readdirstatefile(self, size: int = -1) -> bytes:
+ testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
try:
with self._opendirstatefile() as fp:
return fp.read(size)
@@ -176,6 +177,7 @@
@property
def docket(self) -> "docketmod.DirstateDocket":
+ testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
if not self._docket:
if not self._use_dirstate_v2:
raise error.ProgrammingError(