# HG changeset patch # User Simon Sapin # Date 1636469009 -3600 # Node ID 594cf89047c8909997d2399b6c502b8cde2749c8 # Parent 698b70b9e8ea9ea11db1b3733cc6f11cab9a5f0d rhg: Fix `rhg status` file content comparison This is only used when a file’s metadata make its status ambiguous, which depends on timing of previous command executions. Differential Revision: https://phab.mercurial-scm.org/D11743 diff -r 698b70b9e8ea -r 594cf89047c8 rust/rhg/src/commands/status.rs --- a/rust/rhg/src/commands/status.rs Wed Oct 27 19:37:46 2021 +0100 +++ b/rust/rhg/src/commands/status.rs Tue Nov 09 15:43:29 2021 +0100 @@ -312,5 +312,5 @@ let fs_path = hg_path_to_os_string(hg_path).expect("HgPath conversion"); let fs_contents = repo.working_directory_vfs().read(fs_path)?; - return Ok(contents_in_p1 == &*fs_contents); + return Ok(contents_in_p1 != &*fs_contents); }