inotify: make inotifydirstate.status() returns a tuple of lists.
This makes it consistent with dirstate.status(), which is important if
there are other extensions messing with the output of status(). Those
extensions can safely assume that dirstate.status() returns a tuple of
lists, because its docstring says it does. But
inotifystatus.dirstate() returns a list of lists, which can break
those other extensions.
--- a/hgext/inotify/client.py Wed Jul 14 18:28:12 2010 -0400
+++ b/hgext/inotify/client.py Tue Jul 20 14:00:47 2010 -0400
@@ -154,7 +154,7 @@
if names:
return filter(match, names.split('\0'))
return []
- results = map(readnames, resphdr[:-1])
+ results = tuple(map(readnames, resphdr[:-1]))
if names:
nbytes = resphdr[-1]