[Updated] D8508: rust-regex: add test for verbatim regex syntax
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Wed May 13 00:24:30 UTC 2020
Closed by commit rHG2dd60a9fac48: rust-regex: add test for verbatim regex syntax (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D8508?vs=21326&id=21370#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8508?vs=21326&id=21370
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8508/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8508
AFFECTED FILES
rust/hg-core/src/filepatterns.rs
CHANGE DETAILS
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
@@ -625,6 +625,15 @@
.unwrap(),
Some(br"(?:.*/)?rust/target(?:/|$)".to_vec()),
);
+ assert_eq!(
+ build_single_regex(&IgnorePattern::new(
+ PatternSyntax::Regexp,
+ br"rust/target/\d+",
+ Path::new("")
+ ))
+ .unwrap(),
+ br"rust/target/\d+".to_vec(),
+ );
}
#[test]
To: Alphare, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200513/2c01a278/attachment-0002.html>
More information about the Mercurial-patches
mailing list