[Updated] D8517: rust-status: don't dispatch unknown file when traversing if not listing unknowns
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Thu May 14 20:31:02 UTC 2020
Closed by commit rHGdc60ba32d43b: rust-status: don't dispatch unknown file when traversing if not listing unknowns (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8517?vs=21351&id=21379
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8517/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8517
AFFECTED FILES
rust/hg-core/src/dirstate/status.rs
CHANGE DETAILS
diff --git a/rust/hg-core/src/dirstate/status.rs b/rust/hg-core/src/dirstate/status.rs
--- a/rust/hg-core/src/dirstate/status.rs
+++ b/rust/hg-core/src/dirstate/status.rs
@@ -371,9 +371,11 @@
.unwrap();
}
} else {
- files_sender
- .send(Ok((filename.to_owned(), Dispatch::Unknown)))
- .unwrap();
+ if options.list_unknown {
+ files_sender
+ .send(Ok((filename.to_owned(), Dispatch::Unknown)))
+ .unwrap();
+ }
}
} else if ignore_fn(&filename) && options.list_ignored {
files_sender
To: Alphare, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200514/e85bfccb/attachment-0002.html>
More information about the Mercurial-patches
mailing list