rhg: don't print copy source when --no-status is passed stable
authorArun Kulshreshtha <akulshreshtha@janestreet.com>
Wed, 26 Apr 2023 15:31:02 -0400
branchstable
changeset 50361 668a871454e8
parent 50360 a20df0150f82
child 50362 51041a1a4c59
rhg: don't print copy source when --no-status is passed
rust/rhg/src/commands/status.rs
--- 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()),