# HG changeset patch # User Spencer Baugh # Date 2023-08-02 14:09:23 # Node ID df6dfad5009a700155ba5ec25b3b10b149308a3a # Parent 796b5d6693a4c457dbbb17769edb4beedf3d825f rust-filepatterns: also normalize RelPath These patterns should be normalized too; this at least does no harm, and is necessary for proper status support. diff --git a/rust/hg-core/src/filepatterns.rs b/rust/hg-core/src/filepatterns.rs --- a/rust/hg-core/src/filepatterns.rs +++ b/rust/hg-core/src/filepatterns.rs @@ -317,6 +317,7 @@ pub fn build_single_regex( PatternSyntax::RootGlob | PatternSyntax::Path | PatternSyntax::RelGlob + | PatternSyntax::RelPath | PatternSyntax::RootFiles => normalize_path_bytes(pattern), PatternSyntax::Include | PatternSyntax::SubInclude => { return Err(PatternError::NonRegexPattern(entry.clone()))