hgext/fsmonitor/__init__.py
changeset 34463 718f7acd6d5e
parent 34462 8337f7772aa2
child 34564 b79f59425964
--- a/hgext/fsmonitor/__init__.py	Sun Oct 01 23:47:16 2017 +0100
+++ b/hgext/fsmonitor/__init__.py	Sun Oct 01 22:26:24 2017 +0100
@@ -107,6 +107,7 @@
     merge,
     pathutil,
     pycompat,
+    registrar,
     scmutil,
     util,
 )
@@ -124,6 +125,22 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('fsmonitor', 'mode',
+    default='on',
+)
+configitem('fsmonitor', 'walk_on_invalidate',
+    default=False,
+)
+configitem('fsmonitor', 'timeout',
+    default='2',
+)
+configitem('fsmonitor', 'blacklistusers',
+    default=list,
+)
+
 # This extension is incompatible with the following blacklisted extensions
 # and will disable itself when encountering one of these:
 _blacklist = ['largefiles', 'eol']