rust-filepatterns: also normalize RelPath
authorSpencer Baugh <sbaugh@janestreet.com>
Wed, 02 Aug 2023 10:09:23 -0400
changeset 50858 df6dfad5009a
parent 50857 796b5d6693a4
child 50859 2b4bcdc948e7
rust-filepatterns: also normalize RelPath These patterns should be normalized too; this at least does no harm, and is necessary for proper status support.
rust/hg-core/src/filepatterns.rs
--- 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()))