Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/repo.rs @ 49692:2be6d5782728 stable
dirstate: add a synchronisation point in the middle of the read
This will be useful to test some more race conditions around dirstate.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 13 Dec 2022 14:51:36 +0100 |
parents | fc8e37c380d3 |
children | 491f3dd080eb |
line wrap: on
line diff
--- a/rust/hg-core/src/repo.rs Sun Feb 26 16:27:50 2023 +0100 +++ b/rust/hg-core/src/repo.rs Tue Dec 13 14:51:36 2022 +0100 @@ -339,6 +339,10 @@ let docket = crate::dirstate_tree::on_disk::read_docket( &dirstate_file_contents, )?; + debug_wait_for_file_or_print( + self.config(), + "dirstate.post-docket-read-file", + ); self.dirstate_parents.set(docket.parents()); self.dirstate_data_file_uuid .set(Some(docket.uuid.to_owned()));