# HG changeset patch # User Arun Kulshreshtha # Date 2023-04-26 19:31:02 # Node ID 668a871454e81503817434728c665baae4f70469 # Parent a20df0150f82b10ac5235d3b2fb94ff98ce2eab0 rhg: don't print copy source when --no-status is passed diff --git a/rust/rhg/src/commands/status.rs b/rust/rhg/src/commands/status.rs --- a/rust/rhg/src/commands/status.rs +++ b/rust/rhg/src/commands/status.rs @@ -557,7 +557,7 @@ impl DisplayStatusPaths<'_> { } self.ui .write_stdout_labelled(&format_bytes!(b"{}\n", path), label)?; - if let Some(source) = copy_source { + if let Some(source) = copy_source.filter(|_| !self.no_status) { let label = "status.copied"; self.ui.write_stdout_labelled( &format_bytes!(b" {}\n", source.as_bytes()),