Mercurial > hg
comparison rust/rhg/src/commands/status.rs @ 50178:baa4e2c93642 stable
rust: add debug log about skipping dirstate update
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 12 Dec 2022 16:38:05 +0100 |
parents | 52464a20add0 |
children | ae61851e6fe2 |
comparison
equal
deleted
inserted
replaced
50177:964a913343a2 | 50178:baa4e2c93642 |
---|---|
455 Ok(closure_result) => closure_result?, | 455 Ok(closure_result) => closure_result?, |
456 Err(LockError::AlreadyHeld) => { | 456 Err(LockError::AlreadyHeld) => { |
457 // Not updating the dirstate is not ideal but not critical: | 457 // Not updating the dirstate is not ideal but not critical: |
458 // don’t keep our caller waiting until some other Mercurial | 458 // don’t keep our caller waiting until some other Mercurial |
459 // process releases the lock. | 459 // process releases the lock. |
460 log::info!("not writing dirstate from `status`: lock is held") | |
460 } | 461 } |
461 Err(LockError::Other(HgError::IoError { error, .. })) | 462 Err(LockError::Other(HgError::IoError { error, .. })) |
462 if error.kind() == io::ErrorKind::PermissionDenied => | 463 if error.kind() == io::ErrorKind::PermissionDenied => |
463 { | 464 { |
464 // `hg status` on a read-only repository is fine | 465 // `hg status` on a read-only repository is fine |