watchman: ignore some of watchman errors
authorBoris Feld <boris.feld@octobus.net>
Fri, 21 Dec 2018 17:12:39 +0100
changeset 41969 76361969662a
parent 41968 57264906a996
child 41970 51ba9fbcca52
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
hgext/fsmonitor/__init__.py
--- 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