Mercurial > hg
changeset 8325:f2559645643a
inotify: inotify.server.walk() simplify control flow
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 04 May 2009 18:04:41 +0900 |
parents | b923d599c309 |
children | b7017097a4ec |
files | hgext/inotify/server.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/inotify/server.py Mon May 04 17:58:26 2009 +0900 +++ b/hgext/inotify/server.py Mon May 04 18:04:41 2009 +0900 @@ -69,11 +69,10 @@ for name, kind in osutil.listdir(fullpath): if kind == stat.S_IFDIR: if name == '.hg': - if reporoot: - continue - else: + if not reporoot: return - dirs.append(name) + else: + dirs.append(name) elif kind in (stat.S_IFREG, stat.S_IFLNK): files.append((name, kind)) yield fullpath, dirs, files