Mercurial > hg
comparison hgext/inotify/__init__.py @ 8069:82e28c7be8fb
inotify: Do not raise TypeError when client.query returns None
When something went wrong in client.query, it returns None.
If inotify.debug=True, we will attempt in this case a zip(A, None, B), which
would raise a TypeError.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 08 Apr 2009 14:15:18 +0900 |
parents | 389e2820280d |
children | cce63ef1045b |
comparison
equal
deleted
inserted
replaced
8068:389e2820280d | 8069:82e28c7be8fb |
---|---|
56 files = [] | 56 files = [] |
57 try: | 57 try: |
58 if not ignored and not self.inotifyserver: | 58 if not ignored and not self.inotifyserver: |
59 result = client.query(ui, repo, files, match, False, | 59 result = client.query(ui, repo, files, match, False, |
60 clean, unknown) | 60 clean, unknown) |
61 if ui.config('inotify', 'debug'): | 61 if result and ui.config('inotify', 'debug'): |
62 r2 = super(inotifydirstate, self).status( | 62 r2 = super(inotifydirstate, self).status( |
63 match, False, clean, unknown) | 63 match, False, clean, unknown) |
64 for c,a,b in zip('LMARDUIC', result, r2): | 64 for c,a,b in zip('LMARDUIC', result, r2): |
65 for f in a: | 65 for f in a: |
66 if f not in b: | 66 if f not in b: |