# HG changeset patch # User Boris Feld # Date 2018-12-21 16:12:39 # Node ID 76361969662abe5d079932878bad6f89ba0a6d46 # Parent 57264906a9962dc6677fa4cc613beb33f8f212d7 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 diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py --- a/hgext/fsmonitor/__init__.py +++ b/hgext/fsmonitor/__init__.py @@ -180,7 +180,8 @@ def _handleunavailable(ui, state, ex): 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