##// END OF EJS Templates
inotify: inotify.server.walk() simplify control flow
Nicolas Dumazet -
r8325:f2559645 default
parent child Browse files
Show More
@@ -69,11 +69,10 b' def walk(repo, root):'
69 for name, kind in osutil.listdir(fullpath):
69 for name, kind in osutil.listdir(fullpath):
70 if kind == stat.S_IFDIR:
70 if kind == stat.S_IFDIR:
71 if name == '.hg':
71 if name == '.hg':
72 if reporoot:
72 if not reporoot:
73 continue
74 else:
75 return
73 return
76 dirs.append(name)
74 else:
75 dirs.append(name)
77 elif kind in (stat.S_IFREG, stat.S_IFLNK):
76 elif kind in (stat.S_IFREG, stat.S_IFLNK):
78 files.append((name, kind))
77 files.append((name, kind))
79 yield fullpath, dirs, files
78 yield fullpath, dirs, files
General Comments 0
You need to be logged in to leave comments. Login now