Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/src/utils/debug.rs @ 49686:fc8e37c380d3 stable
dirstate: add a synchronisation point before doing a full dirstate read
This will be useful to test some race conditions around the dirstate.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 25 Feb 2023 01:07:44 +0100 |
parents | 8e0d823ef182 |
children | a6b8b1ab9116 |
comparison
equal
deleted
inserted
replaced
49685:cbd4c9234e25 | 49686:fc8e37c380d3 |
---|---|
77 Err(msg) | 77 Err(msg) |
78 } else { | 78 } else { |
79 Ok(()) | 79 Ok(()) |
80 } | 80 } |
81 } | 81 } |
82 | |
83 pub fn debug_wait_for_file_or_print(config: &Config, config_option: &str) { | |
84 if let Err(e) = debug_wait_for_file(&config, config_option) { | |
85 eprintln!("{e}"); | |
86 }; | |
87 } |