changeset 48309:594cf89047c8

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
author Simon Sapin <simon.sapin@octobus.net>
date Tue, 09 Nov 2021 15:43:29 +0100
parents 698b70b9e8ea
children 229f5ee1a08a
files rust/rhg/src/commands/status.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }