##// END OF EJS Templates
walk: simplify logic for badfn clause...
Matt Mackall -
r8677:34df078b default
parent child Browse files
Show More
@@ -506,22 +506,16 b' class dirstate(object):'
506 506 if nf in dmap:
507 507 results[nf] = None
508 508 except OSError, inst:
509 keep = False
510 509 if nf in dmap: # does it exactly match a file?
511 510 results[nf] = None
512 keep = True
513 511 else: # does it match a directory?
514 512 prefix = nf + "/"
515 513 for fn in dmap:
516 514 if fn.startswith(prefix):
517 515 dostep3 = True
518 keep = True
519 516 break
520 if not keep:
521 if inst.errno != errno.ENOENT:
522 fwarn(ff, inst.strerror)
523 elif badfn(ff, inst.strerror):
524 if nf not in results and not ignore(nf) and matchfn(nf):
517 else:
518 if badfn(ff, inst.strerror) and not ignore(nf):
525 519 results[nf] = None
526 520
527 521 # step 2: visit subdirectories
General Comments 0
You need to be logged in to leave comments. Login now