From patchwork Thu Feb 7 17:08:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D5880: fsmonitor: rename new verbose config knob From: phabricator X-Patchwork-Id: 38523 Message-Id: <1b96dc4d319bfb7ed4544f7fa2b47261@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Thu, 7 Feb 2019 17:08:25 +0000 lothiraldan updated this revision to Diff 13890. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5880?vs=13889&id=13890 REVISION DETAIL https://phab.mercurial-scm.org/D5880 AFFECTED FILES hgext/fsmonitor/__init__.py CHANGE DETAILS To: lothiraldan, #hg-reviewers Cc: pulkit, mjpieters, mercurial-devel 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', @@ -176,12 +176,12 @@ """Exception handler for Watchman interaction exceptions""" if isinstance(ex, watchmanclient.Unavailable): # experimental config: hgwatchman.verbose - if ex.warn and ui.configbool('hgwatchman', '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)