rust/rhg/src/commands/status.rs
branchstable
changeset 50441 668a871454e8
parent 50252 a6b8b1ab9116
child 50442 51041a1a4c59
--- a/rust/rhg/src/commands/status.rs	Wed Apr 26 16:18:12 2023 -0400
+++ b/rust/rhg/src/commands/status.rs	Wed Apr 26 15:31:02 2023 -0400
@@ -557,7 +557,7 @@
             }
             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()),