##// END OF EJS Templates
inotify: files is always a list: 'files or []' is redundant...
Nicolas Dumazet -
r8067:b084d6d6 default
parent child Browse files
Show More
@@ -96,7 +96,7 b' def reposetup(ui, repo):'
96 '%s\n') % inst)
96 '%s\n') % inst)
97 if query:
97 if query:
98 try:
98 try:
99 return query(ui, repo, files or [], match,
99 return query(ui, repo, files, match,
100 ignored, clean, unknown)
100 ignored, clean, unknown)
101 except socket.error, err:
101 except socket.error, err:
102 ui.warn(_('could not talk to new inotify '
102 ui.warn(_('could not talk to new inotify '
@@ -23,7 +23,7 b' def query(ui, repo, names, match, ignore'
23 raise
23 raise
24
24
25 def genquery():
25 def genquery():
26 for n in names or []:
26 for n in names:
27 yield n
27 yield n
28 states = 'almrx!'
28 states = 'almrx!'
29 if ignored:
29 if ignored:
General Comments 0
You need to be logged in to leave comments. Login now