##// END OF EJS Templates
inotify: inotify.server.walk() simplify control flow
Nicolas Dumazet -
r8325:f2559645 default
parent child Browse files
Show More
@@ -69,10 +69,9 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
73 return
74 else:
74 else:
75 return
76 dirs.append(name)
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))
General Comments 0
You need to be logged in to leave comments. Login now