Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/sparse.rs @ 52303:22d24f6d6411
rust-lib: remove exports for not too common pattern-related types
This only muddies the lib and makes the imports more confusing.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 11:26:41 +0100 |
parents | f33b87b46135 |
children | 94e2547e6f3d |
line wrap: on
line diff
--- a/rust/hg-core/src/sparse.rs Mon Nov 04 11:21:43 2024 +0100 +++ b/rust/hg-core/src/sparse.rs Mon Nov 04 11:26:41 2024 +0100 @@ -5,7 +5,10 @@ use crate::{ errors::HgError, exit_codes::STATE_ERROR, - filepatterns::{PatternError, parse_pattern_file_contents}, + filepatterns::{ + parse_pattern_file_contents, IgnorePattern, PatternError, + PatternFileWarning, PatternSyntax, + }, matchers::{ AlwaysMatcher, DifferenceMatcher, IncludeMatcher, Matcher, UnionMatcher, @@ -15,8 +18,7 @@ repo::Repo, requirements::SPARSE_REQUIREMENT, utils::{hg_path::HgPath, SliceExt}, - IgnorePattern, PatternFileWarning, PatternSyntax, Revision, - NULL_REVISION, + Revision, NULL_REVISION, }; /// Command which is triggering the config read