Show More
@@ -434,14 +434,10 b' class dirstate(object):' | |||
|
434 | 434 | self._ui.warn(_('%s: unsupported file type (type is %s)\n') |
|
435 | 435 | % (self.pathto(f), kind)) |
|
436 | 436 | |
|
437 | def imatch(f): | |
|
438 | return (f in dmap or not ignore(f)) and match(f) | |
|
439 | ||
|
440 | 437 | # TODO: don't walk unknown directories if unknown and ignored are False |
|
441 | 438 | ignore = self._ignore |
|
442 | 439 | dirignore = self._dirignore |
|
443 | 440 | if ignored: |
|
444 | imatch = match | |
|
445 | 441 | ignore = util.never |
|
446 | 442 | dirignore = util.never |
|
447 | 443 | |
@@ -493,8 +489,9 b' class dirstate(object):' | |||
|
493 | 489 | if not keep: |
|
494 | 490 | if inst.errno != errno.ENOENT: |
|
495 | 491 | fwarn(ff, inst.strerror) |
|
496 |
elif badfn(ff, inst.strerror) |
|
|
497 | results[nf] = None | |
|
492 | elif badfn(ff, inst.strerror): | |
|
493 | if (nf in dmap or not ignore(nf)) and match(nf): | |
|
494 | results[nf] = None | |
|
498 | 495 | |
|
499 | 496 | # step 2: visit subdirectories |
|
500 | 497 | while work: |
@@ -520,11 +517,14 b' class dirstate(object):' | |||
|
520 | 517 | wadd(nf) |
|
521 | 518 | if nf in dmap and match(nf): |
|
522 | 519 | results[nf] = None |
|
523 | elif imatch(nf): | |
|
524 |
if |
|
|
520 | elif kind == regkind or kind == lnkkind: | |
|
521 | if nf in dmap: | |
|
522 | if match(nf): | |
|
523 | results[nf] = st | |
|
524 | elif match(nf) and not ignore(nf): | |
|
525 | 525 | results[nf] = st |
|
526 |
|
|
|
527 |
|
|
|
526 | elif nf in dmap and match(nf): | |
|
527 | results[nf] = None | |
|
528 | 528 | |
|
529 | 529 | # step 3: report unseen items in the dmap hash |
|
530 | 530 | for nf in util.sort(dmap): |
General Comments 0
You need to be logged in to leave comments.
Login now