equal
deleted
inserted
replaced
784 if matchedir: |
784 if matchedir: |
785 matchedir(nf) |
785 matchedir(nf) |
786 notfoundadd(nf) |
786 notfoundadd(nf) |
787 else: |
787 else: |
788 badfn(ff, encoding.strtolocal(inst.strerror)) |
788 badfn(ff, encoding.strtolocal(inst.strerror)) |
|
789 |
|
790 # match.files() may contain explicitly-specified paths that shouldn't |
|
791 # be taken; drop them from the list of files found. dirsfound/notfound |
|
792 # aren't filtered here because they will be tested later. |
|
793 if match.anypats(): |
|
794 for f in list(results): |
|
795 if f == '.hg' or f in subrepos: |
|
796 # keep sentinel to disable further out-of-repo walks |
|
797 continue |
|
798 if not match(f): |
|
799 del results[f] |
789 |
800 |
790 # Case insensitive filesystems cannot rely on lstat() failing to detect |
801 # Case insensitive filesystems cannot rely on lstat() failing to detect |
791 # a case-only rename. Prune the stat object for any file that does not |
802 # a case-only rename. Prune the stat object for any file that does not |
792 # match the case in the filesystem, if there are multiple files that |
803 # match the case in the filesystem, if there are multiple files that |
793 # normalize to the same path. |
804 # normalize to the same path. |