Mercurial > hg
comparison rust/hg-core/src/dirstate/status.rs @ 47317:c8f62920f07a stable
rust-status: fix ignore and include not composing (issue6514)
While the fix is pretty simple, the overall dispatch logic has become kind of
ugly. Thankfully we're currently upstreaming a better algorithm, this code is
temporary anyway.
Differential Revision: https://phab.mercurial-scm.org/D10639
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 04 May 2021 10:46:50 +0200 |
parents | 441024b279a6 |
children | 717a94b423b9 |
comparison
equal
deleted
inserted
replaced
47316:c365850b6114 | 47317:c8f62920f07a |
---|---|
555 files_sender | 555 files_sender |
556 .send((filename.to_owned(), Dispatch::Unknown)) | 556 .send((filename.to_owned(), Dispatch::Unknown)) |
557 .unwrap(); | 557 .unwrap(); |
558 } | 558 } |
559 } else if self.is_ignored(&filename) && self.options.list_ignored { | 559 } else if self.is_ignored(&filename) && self.options.list_ignored { |
560 files_sender | 560 if self.matcher.matches(&filename) { |
561 .send((filename.to_owned(), Dispatch::Ignored)) | 561 files_sender |
562 .unwrap(); | 562 .send((filename.to_owned(), Dispatch::Ignored)) |
563 .unwrap(); | |
564 } | |
563 } | 565 } |
564 } else if let Some(entry) = entry_option { | 566 } else if let Some(entry) = entry_option { |
565 // Used to be a file or a folder, now something else. | 567 // Used to be a file or a folder, now something else. |
566 if self.matcher.matches_everything() | 568 if self.matcher.matches_everything() |
567 || self.matcher.matches(&filename) | 569 || self.matcher.matches(&filename) |