diff -r 32ba01b5669d -r e4b9f8a74d5f rust/hg-cpython/src/dirstate/status.rs --- a/rust/hg-cpython/src/dirstate/status.rs Tue Apr 16 13:51:45 2024 +0100 +++ b/rust/hg-cpython/src/dirstate/status.rs Tue Apr 16 17:21:37 2024 +0100 @@ -21,7 +21,7 @@ }; use hg::{ matchers::{AlwaysMatcher, FileMatcher, IncludeMatcher}, - parse_pattern_syntax, + parse_pattern_syntax_kind, utils::{ files::{get_bytes_from_path, get_path_from_bytes}, hg_path::{HgPath, HgPathBuf}, @@ -162,12 +162,8 @@ .iter(py)? .map(|k| { let k = k?; - let syntax = parse_pattern_syntax( - &[ - k.get_item(py, 0)?.extract::(py)?.data(py), - &b":"[..], - ] - .concat(), + let syntax = parse_pattern_syntax_kind( + k.get_item(py, 0)?.extract::(py)?.data(py), ) .map_err(|e| handle_fallback(py, StatusError::Pattern(e)))?; let pattern = k.get_item(py, 1)?.extract::(py)?;