Patchwork D5590: watchman: ignore some of watchman errors

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2019, 3:03 p.m.
Message ID <84cbfc992838a15612ddd7fbb1ae1afd@localhost.localdomain>
Download mbox | patch
Permalink /patch/38722/
State Not Applicable
Headers show

Comments

phabricator - Feb. 13, 2019, 3:03 p.m.
lothiraldan updated this revision to Diff 14071.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5590?vs=13415&id=14071

REVISION DETAIL
  https://phab.mercurial-scm.org/D5590

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py
+++ b/hgext/fsmonitor/__init__.py
@@ -183,7 +183,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