comparison hgext/fsmonitor/__init__.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 8337f7772aa2
children b79f59425964
comparison
equal deleted inserted replaced
34462:8337f7772aa2 34463:718f7acd6d5e
105 extensions, 105 extensions,
106 localrepo, 106 localrepo,
107 merge, 107 merge,
108 pathutil, 108 pathutil,
109 pycompat, 109 pycompat,
110 registrar,
110 scmutil, 111 scmutil,
111 util, 112 util,
112 ) 113 )
113 from mercurial import match as matchmod 114 from mercurial import match as matchmod
114 115
121 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for 122 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
122 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 123 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
123 # be specifying the version(s) of Mercurial they are tested with, or 124 # be specifying the version(s) of Mercurial they are tested with, or
124 # leave the attribute unspecified. 125 # leave the attribute unspecified.
125 testedwith = 'ships-with-hg-core' 126 testedwith = 'ships-with-hg-core'
127
128 configtable = {}
129 configitem = registrar.configitem(configtable)
130
131 configitem('fsmonitor', 'mode',
132 default='on',
133 )
134 configitem('fsmonitor', 'walk_on_invalidate',
135 default=False,
136 )
137 configitem('fsmonitor', 'timeout',
138 default='2',
139 )
140 configitem('fsmonitor', 'blacklistusers',
141 default=list,
142 )
126 143
127 # This extension is incompatible with the following blacklisted extensions 144 # This extension is incompatible with the following blacklisted extensions
128 # and will disable itself when encountering one of these: 145 # and will disable itself when encountering one of these:
129 _blacklist = ['largefiles', 'eol'] 146 _blacklist = ['largefiles', 'eol']
130 147