[Commented On] D10639: rust-status: fix ignore and include not composing (issue6514)
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Tue May 4 09:37:06 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 27541.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
⚠ This patch is intended for stable ⚠
<img src="https://phab.mercurial-scm.org/file/data/4o6lfxo43u6gbnfsifys/PHID-FILE-zwrncodnfrpey7tpfyva/source.gif" />
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10639?vs=27539&id=27541
BRANCH
stable
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10639/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10639
AFFECTED FILES
rust/hg-core/src/dirstate/status.rs
tests/test-status.t
CHANGE DETAILS
diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -708,4 +708,3 @@
I A.hs
I B.hs
I ignored-folder/ctest.hs
- I ignored-folder/other.txt (known-bad-output rust !)
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
@@ -557,9 +557,11 @@
.unwrap();
}
} else if self.is_ignored(&filename) && self.options.list_ignored {
- files_sender
- .send((filename.to_owned(), Dispatch::Ignored))
- .unwrap();
+ if self.matcher.matches(&filename) {
+ files_sender
+ .send((filename.to_owned(), Dispatch::Ignored))
+ .unwrap();
+ }
}
} else if let Some(entry) = entry_option {
// Used to be a file or a folder, now something else.
To: Alphare, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210504/8fe3f526/attachment-0002.html>
More information about the Mercurial-patches
mailing list