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