comparison rust/hg-core/src/dirstate_tree/status.rs @ 49423:7e5377bdb66e stable

rust-status: ignored directories are now correctly only listed if opted into This fixes the behavior of `hg purge` removing empty ignored directory even without `--all` or `--ignored`.
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 17 Aug 2022 12:00:06 +0200
parents 288de6f5d724
children eb02decdf0ab
comparison
equal deleted inserted replaced
49422:55f8f3b6787f 49423:7e5377bdb66e
726 &hg_path, 726 &hg_path,
727 child_fs_entry, 727 child_fs_entry,
728 ); 728 );
729 }) 729 })
730 } 730 }
731 } 731 if self.options.collect_traversed_dirs {
732 if self.options.collect_traversed_dirs { 732 self.outcome.lock().unwrap().traversed.push(hg_path.into())
733 self.outcome.lock().unwrap().traversed.push(hg_path.into()) 733 }
734 } 734 }
735 is_ignored 735 is_ignored
736 } else { 736 } else {
737 if file_or_symlink { 737 if file_or_symlink {
738 if self.matcher.matches(&hg_path) { 738 if self.matcher.matches(&hg_path) {