Patchwork D5955: watchman: ignore some of watchman errors

login
register
mail settings
Submitter phabricator
Date March 16, 2019, 11:57 p.m.
Message ID <2aa14a68735548c809328ee0e3866e8d@localhost.localdomain>
Download mbox | patch
Permalink /patch/39298/
State Not Applicable
Headers show

Comments

phabricator - March 16, 2019, 11:57 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG76361969662a: watchman: ignore some of watchman errors (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5955?vs=14077&id=14528

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

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, pulkit
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
@@ -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