##// END OF EJS Templates
rhg: avoid calculating copies for status --no-status...
Mitchell Kember -
r53239:53dc147b default
parent child Browse files
Show More
@@ -305,7 +305,7 pub fn run(invocation: &crate::CliInvoca
305 } else {
305 } else {
306 config.get_bool(b"ui", b"statuscopies")?
306 config.get_bool(b"ui", b"statuscopies")?
307 };
307 };
308 let list_copies = list_copies || all;
308 let list_copies = (list_copies || all) && !no_status;
309
309
310 let repo = invocation.repo?;
310 let repo = invocation.repo?;
311 let revpair = parse_revpair(repo, revs.map(|i| i.cloned().collect()))?;
311 let revpair = parse_revpair(repo, revs.map(|i| i.cloned().collect()))?;
@@ -705,7 +705,7 impl DisplayStatusPaths<'_> {
705 &format_bytes!(b"{}{}", path, linebreak),
705 &format_bytes!(b"{}{}", path, linebreak),
706 label,
706 label,
707 )?;
707 )?;
708 if let Some(source) = copy_source.filter(|_| !self.no_status) {
708 if let Some(source) = copy_source {
709 let label = "status.copied";
709 let label = "status.copied";
710 self.ui.write_stdout_labelled(
710 self.ui.write_stdout_labelled(
711 &format_bytes!(b" {}{}", source, linebreak),
711 &format_bytes!(b" {}{}", source, linebreak),
General Comments 0
You need to be logged in to leave comments. Login now