Show More
@@ -73,16 +73,15 b' def walk(repo, root):' | |||||
73 | return |
|
73 | return | |
74 | else: |
|
74 | else: | |
75 | dirs.append(name) |
|
75 | dirs.append(name) | |
|
76 | path = join(root, name) | |||
|
77 | if repo.dirstate._ignore(path): | |||
|
78 | continue | |||
|
79 | for result in walkit(path, False): | |||
|
80 | yield result | |||
76 | elif kind in (stat.S_IFREG, stat.S_IFLNK): |
|
81 | elif kind in (stat.S_IFREG, stat.S_IFLNK): | |
77 | files.append(name) |
|
82 | files.append(name) | |
78 | yield fullpath, dirs, files |
|
83 | yield fullpath, dirs, files | |
79 |
|
84 | |||
80 | for subdir in dirs: |
|
|||
81 | path = join(root, subdir) |
|
|||
82 | if repo.dirstate._ignore(path): |
|
|||
83 | continue |
|
|||
84 | for result in walkit(path, False): |
|
|||
85 | yield result |
|
|||
86 | except OSError, err: |
|
85 | except OSError, err: | |
87 | if err.errno not in walk_ignored_errors: |
|
86 | if err.errno not in walk_ignored_errors: | |
88 | raise |
|
87 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now