comparison tests/test-hgignore.t @ 32501:7095dbc266e3

match: split up main matcher into patternmatcher and includematcher At this point the includematcher is an exact copy of the main matcher class. We will specialize and simplify both classes in the following patches. This initial unmodified copy is just to make the differences clearer. We also rename the main matcher to "patternmatcher" for consistency. I may eventually merge this new includematcher back into the main matcher, but I think doing it this way makes the intermediate steps clearer regardless.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 19 May 2017 22:36:14 -0700
parents 369c2d5eeea3
children 3026f19b4b01
comparison
equal deleted inserted replaced
32500:369c2d5eeea3 32501:7095dbc266e3
162 $ cd dir 162 $ cd dir
163 $ hg status . 163 $ hg status .
164 A b.o 164 A b.o
165 165
166 $ hg debugignore 166 $ hg debugignore
167 <matcher patterns=None, includes='(?:(?:|.*/)[^/]*(?:/|$))'> 167 <includematcher patterns=None, includes='(?:(?:|.*/)[^/]*(?:/|$))'>
168 168
169 $ hg debugignore b.o 169 $ hg debugignore b.o
170 b.o is ignored 170 b.o is ignored
171 (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*') (glob) 171 (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*') (glob)
172 172