Patchwork D5880: fsmonitor: rename new verbose config knob

login
register
mail settings
Submitter phabricator
Date Feb. 7, 2019, 6:07 p.m.
Message ID <4b7cf5d28ca15d35f79012ac0ce3383e@localhost.localdomain>
Download mbox | patch
Permalink /patch/38524/
State Not Applicable
Headers show

Comments

phabricator - Feb. 7, 2019, 6:07 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG286eeed14893: fsmonitor: rename new verbose config knob (authored by lothiraldan, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D5880?vs=13890&id=13891#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5880?vs=13890&id=13891

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

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, pulkit
Cc: pulkit, mjpieters, 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
@@ -161,7 +161,7 @@ 
 configitem('fsmonitor', 'blacklistusers',
     default=list,
 )
-configitem('hgwatchman', 'verbose',
+configitem('fsmonitor', 'verbose',
     default=True,
 )
 configitem('experimental', 'fsmonitor.transaction_notify',
@@ -175,13 +175,13 @@ 
 def _handleunavailable(ui, state, ex):
     """Exception handler for Watchman interaction exceptions"""
     if isinstance(ex, watchmanclient.Unavailable):
-        # experimental config: hgwatchman.verbose
-        if ex.warn and ui.configbool('hgwatchman', 'verbose'):
+        # experimental config: fsmonitor.verbose
+        if ex.warn and ui.configbool('fsmonitor', 'verbose'):
             ui.warn(str(ex) + '\n')
         if ex.invalidate:
             state.invalidate()
-        # experimental config: hgwatchman.verbose
-        if ui.configbool('hgwatchman','verbose'):
+        # experimental config: fsmonitor.verbose
+        if ui.configbool('fsmonitor', 'verbose'):
             ui.log('fsmonitor', 'Watchman unavailable: %s\n', ex.msg)
     else:
         ui.log('fsmonitor', 'Watchman exception: %s\n', ex)