Show More
@@ -218,14 +218,16 b' class dirstate:' | |||
|
218 | 218 | dc = self.filterfiles(files) |
|
219 | 219 | |
|
220 | 220 | def statmatch(file, stat): |
|
221 | file = util.pconvert(file) | |
|
221 | 222 | if file not in dc and self.ignore(file): |
|
222 | 223 | return False |
|
223 | 224 | return match(file) |
|
225 | ||
|
224 | 226 | return self.walkhelper(files=files, statmatch=statmatch, dc=dc) |
|
225 | 227 | |
|
226 | 228 | # walk recursively through the directory tree, finding all files |
|
227 | 229 | # matched by the statmatch function |
|
228 |
# |
|
|
230 | # | |
|
229 | 231 | # results are yielded in a tuple (src, filename), where src is one of: |
|
230 | 232 | # 'f' the file was found in the directory tree |
|
231 | 233 | # 'm' the file was only in the dirstate and not in the tree |
@@ -324,10 +326,11 b' class dirstate:' | |||
|
324 | 326 | # and put files into the appropriate array. This gets passed |
|
325 | 327 | # to the walking code |
|
326 | 328 | def statmatch(fn, s): |
|
329 | fn = util.pconvert(fn) | |
|
327 | 330 | def checkappend(l, fn): |
|
328 | 331 | if match is util.always or match(fn): |
|
329 | 332 | l.append(fn) |
|
330 | ||
|
333 | ||
|
331 | 334 | if not s or stat.S_ISDIR(s.st_mode): |
|
332 | 335 | return self.ignore(fn) and False or match(fn) |
|
333 | 336 |
General Comments 0
You need to be logged in to leave comments.
Login now