comparison rust/hg-core/src/sparse.rs @ 52307: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
comparison
equal deleted inserted replaced
52306:f33b87b46135 52307:22d24f6d6411
3 use format_bytes::{format_bytes, write_bytes, DisplayBytes}; 3 use format_bytes::{format_bytes, write_bytes, DisplayBytes};
4 4
5 use crate::{ 5 use crate::{
6 errors::HgError, 6 errors::HgError,
7 exit_codes::STATE_ERROR, 7 exit_codes::STATE_ERROR,
8 filepatterns::{PatternError, parse_pattern_file_contents}, 8 filepatterns::{
9 parse_pattern_file_contents, IgnorePattern, PatternError,
10 PatternFileWarning, PatternSyntax,
11 },
9 matchers::{ 12 matchers::{
10 AlwaysMatcher, DifferenceMatcher, IncludeMatcher, Matcher, 13 AlwaysMatcher, DifferenceMatcher, IncludeMatcher, Matcher,
11 UnionMatcher, 14 UnionMatcher,
12 }, 15 },
13 narrow::VALID_PREFIXES, 16 narrow::VALID_PREFIXES,
14 operations::cat, 17 operations::cat,
15 repo::Repo, 18 repo::Repo,
16 requirements::SPARSE_REQUIREMENT, 19 requirements::SPARSE_REQUIREMENT,
17 utils::{hg_path::HgPath, SliceExt}, 20 utils::{hg_path::HgPath, SliceExt},
18 IgnorePattern, PatternFileWarning, PatternSyntax, Revision, 21 Revision, NULL_REVISION,
19 NULL_REVISION,
20 }; 22 };
21 23
22 /// Command which is triggering the config read 24 /// Command which is triggering the config read
23 #[derive(Copy, Clone, Debug)] 25 #[derive(Copy, Clone, Debug)]
24 pub enum SparseConfigContext { 26 pub enum SparseConfigContext {