rust: add debug log about skipping dirstate update stable
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 12 Dec 2022 16:38:05 +0100
branchstable
changeset 49667 baa4e2c93642
parent 49666 964a913343a2
child 49668 f2e13d8d30e0
rust: add debug log about skipping dirstate update
rust/rhg/src/commands/status.rs
--- a/rust/rhg/src/commands/status.rs	Mon Jan 09 15:17:48 2023 +0100
+++ b/rust/rhg/src/commands/status.rs	Mon Dec 12 16:38:05 2022 +0100
@@ -457,6 +457,7 @@
             // Not updating the dirstate is not ideal but not critical:
             // don’t keep our caller waiting until some other Mercurial
             // process releases the lock.
+            log::info!("not writing dirstate from `status`: lock is held")
         }
         Err(LockError::Other(HgError::IoError { error, .. }))
             if error.kind() == io::ErrorKind::PermissionDenied =>