##// END OF EJS Templates
fsmonitor: rename new verbose config knob...
Boris Feld -
r41758:286eeed1 default
parent child Browse files
Show More
@@ -161,7 +161,7 b" configitem('fsmonitor', 'timeout',"
161 configitem('fsmonitor', 'blacklistusers',
161 configitem('fsmonitor', 'blacklistusers',
162 default=list,
162 default=list,
163 )
163 )
164 configitem('hgwatchman', 'verbose',
164 configitem('fsmonitor', 'verbose',
165 default=True,
165 default=True,
166 )
166 )
167 configitem('experimental', 'fsmonitor.transaction_notify',
167 configitem('experimental', 'fsmonitor.transaction_notify',
@@ -175,13 +175,13 b" configitem('experimental', 'fsmonitor.tr"
175 def _handleunavailable(ui, state, ex):
175 def _handleunavailable(ui, state, ex):
176 """Exception handler for Watchman interaction exceptions"""
176 """Exception handler for Watchman interaction exceptions"""
177 if isinstance(ex, watchmanclient.Unavailable):
177 if isinstance(ex, watchmanclient.Unavailable):
178 # experimental config: hgwatchman.verbose
178 # experimental config: fsmonitor.verbose
179 if ex.warn and ui.configbool('hgwatchman', 'verbose'):
179 if ex.warn and ui.configbool('fsmonitor', 'verbose'):
180 ui.warn(str(ex) + '\n')
180 ui.warn(str(ex) + '\n')
181 if ex.invalidate:
181 if ex.invalidate:
182 state.invalidate()
182 state.invalidate()
183 # experimental config: hgwatchman.verbose
183 # experimental config: fsmonitor.verbose
184 if ui.configbool('hgwatchman','verbose'):
184 if ui.configbool('fsmonitor', 'verbose'):
185 ui.log('fsmonitor', 'Watchman unavailable: %s\n', ex.msg)
185 ui.log('fsmonitor', 'Watchman unavailable: %s\n', ex.msg)
186 else:
186 else:
187 ui.log('fsmonitor', 'Watchman exception: %s\n', ex)
187 ui.log('fsmonitor', 'Watchman exception: %s\n', ex)
General Comments 0
You need to be logged in to leave comments. Login now