diff rust/hg-core/src/filepatterns.rs @ 50858:df6dfad5009a

rust-filepatterns: also normalize RelPath These patterns should be normalized too; this at least does no harm, and is necessary for proper status support.
author Spencer Baugh <sbaugh@janestreet.com>
date Wed, 02 Aug 2023 10:09:23 -0400
parents 796b5d6693a4
children 2b4bcdc948e7
line wrap: on
line diff
--- a/rust/hg-core/src/filepatterns.rs	Wed Aug 09 18:08:28 2023 -0400
+++ b/rust/hg-core/src/filepatterns.rs	Wed Aug 02 10:09:23 2023 -0400
@@ -317,6 +317,7 @@
         PatternSyntax::RootGlob
         | PatternSyntax::Path
         | PatternSyntax::RelGlob
+        | PatternSyntax::RelPath
         | PatternSyntax::RootFiles => normalize_path_bytes(pattern),
         PatternSyntax::Include | PatternSyntax::SubInclude => {
             return Err(PatternError::NonRegexPattern(entry.clone()))