Show More
@@ -69,11 +69,10 b' def walk(repo, root):' | |||
|
69 | 69 | for name, kind in osutil.listdir(fullpath): |
|
70 | 70 | if kind == stat.S_IFDIR: |
|
71 | 71 | if name == '.hg': |
|
72 | if reporoot: | |
|
73 | continue | |
|
74 | else: | |
|
72 | if not reporoot: | |
|
75 | 73 | return |
|
76 |
|
|
|
74 | else: | |
|
75 | dirs.append(name) | |
|
77 | 76 | elif kind in (stat.S_IFREG, stat.S_IFLNK): |
|
78 | 77 | files.append((name, kind)) |
|
79 | 78 | yield fullpath, dirs, files |
General Comments 0
You need to be logged in to leave comments.
Login now