Mercurial > hg-stable
diff tests/test-hgignore.t @ 42870:72890d8f9860
match: simplify the regexps created for glob patterns
For legibility of the resulting regexes, although it may help with
performance as well.
Differential Revision: https://phab.mercurial-scm.org/D6764
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Sun, 25 Aug 2019 22:53:42 -0400 |
parents | 96ddf83fc267 |
children | 93eb6c8035a9 |
line wrap: on
line diff
--- a/tests/test-hgignore.t Mon Aug 26 08:25:01 2019 -0400 +++ b/tests/test-hgignore.t Sun Aug 25 22:53:42 2019 -0400 @@ -177,7 +177,7 @@ ? a.c ? syntax $ hg debugignore - <includematcher includes='(?:|.*/)[^/]*\\.o(?:/|$)'> + <includematcher includes='.*\\.o(?:/|$)'> $ cd .. $ echo > .hg/testhgignorerel @@ -224,7 +224,7 @@ A b.o $ hg debugignore - <includematcher includes='(?:|.*/)[^/]*(?:/|$)'> + <includematcher includes='.*(?:/|$)'> $ hg debugignore b.o b.o is ignored