Show More
@@ -144,8 +144,12 b' def matcher(repo, cwd, names, inc, exc, ' | |||
|
144 | 144 | |
|
145 | 145 | patmatch = matchfn(pats, '$') or always |
|
146 | 146 | filematch = matchfn(files, '(?:/|$)') or always |
|
147 | incmatch = matchfn(map(patkind, inc), '(?:/|$)') or always | |
|
148 | excmatch = matchfn(map(patkind, exc), '(?:/|$)') or (lambda fn: False) | |
|
147 | incmatch = always | |
|
148 | if inc: | |
|
149 | incmatch = matchfn(map(patkind, inc), '(?:/|$)') | |
|
150 | excmatch = lambda fn: False | |
|
151 | if exc: | |
|
152 | excmatch = matchfn(map(patkind, exc), '(?:/|$)') | |
|
149 | 153 | |
|
150 | 154 | return roots, lambda fn: (incmatch(fn) and not excmatch(fn) and |
|
151 | 155 | (fn.endswith('/') or |
General Comments 0
You need to be logged in to leave comments.
Login now