Mercurial > hg
diff hgext/fsmonitor/state.py @ 34463:718f7acd6d5e
fsmonitor: use configitem
We might as well get this out of the way.
Differential Revision: https://phab.mercurial-scm.org/D893
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 01 Oct 2017 22:26:24 +0100 |
parents | 1b25c648d5b7 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/hgext/fsmonitor/state.py Sun Oct 01 23:47:16 2017 +0100 +++ b/hgext/fsmonitor/state.py Sun Oct 01 22:26:24 2017 +0100 @@ -29,11 +29,10 @@ self._lastclock = None self._identity = util.filestat(None) - self.mode = self._ui.config('fsmonitor', 'mode', default='on') + self.mode = self._ui.config('fsmonitor', 'mode') self.walk_on_invalidate = self._ui.configbool( - 'fsmonitor', 'walk_on_invalidate', False) - self.timeout = float(self._ui.config( - 'fsmonitor', 'timeout', default='2')) + 'fsmonitor', 'walk_on_invalidate') + self.timeout = float(self._ui.config('fsmonitor', 'timeout')) def get(self): try: