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