Mercurial > hg
changeset 50361:668a871454e8 stable
rhg: don't print copy source when --no-status is passed
author | Arun Kulshreshtha <akulshreshtha@janestreet.com> |
---|---|
date | Wed, 26 Apr 2023 15:31:02 -0400 |
parents | a20df0150f82 |
children | 51041a1a4c59 |
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 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()),