watchman: ignore some of watchman errors
Don't display 'illegal_fstypes' errors. In environments with network
filesystems, the error messages are quickly pilling up and polluting outputs.
Differential Revision: https://phab.mercurial-scm.org/D5955
--- a/hgext/fsmonitor/__init__.py Fri Dec 21 17:10:54 2018 +0100
+++ b/hgext/fsmonitor/__init__.py Fri Dec 21 17:12:39 2018 +0100
@@ -180,7 +180,8 @@
if isinstance(ex, watchmanclient.Unavailable):
# experimental config: fsmonitor.verbose
if ex.warn and ui.configbool('fsmonitor', 'verbose'):
- ui.warn(str(ex) + '\n')
+ if 'illegal_fstypes' not in str(ex):
+ ui.warn(str(ex) + '\n')
if ex.invalidate:
state.invalidate()
# experimental config: fsmonitor.verbose