configitems: register the 'format.usefncache' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:42:28 +0200
changeset 33245 28e8983d9ed7
parent 33244 fd50788a2d4f
child 33246 4d9458e06ef0
configitems: register the 'format.usefncache' config
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Fri Jun 30 03:42:27 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:42:28 2017 +0200
@@ -125,6 +125,9 @@
 coreconfigitem('format', 'obsstore-version',
     default=None,
 )
+coreconfigitem('format', 'usefncache',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
--- a/mercurial/localrepo.py	Fri Jun 30 03:42:27 2017 +0200
+++ b/mercurial/localrepo.py	Fri Jun 30 03:42:28 2017 +0200
@@ -2076,7 +2076,7 @@
     requirements = {'revlogv1'}
     if ui.configbool('format', 'usestore', True):
         requirements.add('store')
-        if ui.configbool('format', 'usefncache', True):
+        if ui.configbool('format', 'usefncache'):
             requirements.add('fncache')
             if ui.configbool('format', 'dotencode'):
                 requirements.add('dotencode')