# HG changeset patch # User Nicolas Dumazet # Date 1239164848 -32400 # Node ID b084d6d6f3456fd14dad0db85051d3c0eeb4039f # Parent aece3c9e62f1a685e4cebd3ecf0b22e1c8101ae1 inotify: files is always a list: 'files or []' is redundant files comes from match.files() : it always returns a list. diff -r aece3c9e62f1 -r b084d6d6f345 hgext/inotify/__init__.py --- a/hgext/inotify/__init__.py Mon Apr 13 21:57:17 2009 +0200 +++ b/hgext/inotify/__init__.py Wed Apr 08 13:27:28 2009 +0900 @@ -96,7 +96,7 @@ '%s\n') % inst) if query: try: - return query(ui, repo, files or [], match, + return query(ui, repo, files, match, ignored, clean, unknown) except socket.error, err: ui.warn(_('could not talk to new inotify ' diff -r aece3c9e62f1 -r b084d6d6f345 hgext/inotify/client.py --- a/hgext/inotify/client.py Mon Apr 13 21:57:17 2009 +0200 +++ b/hgext/inotify/client.py Wed Apr 08 13:27:28 2009 +0900 @@ -23,7 +23,7 @@ raise def genquery(): - for n in names or []: + for n in names: yield n states = 'almrx!' if ignored: