changeset 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
files rust/hg-core/src/filepatterns.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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()))