configitems: register the 'format.usestore' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:42:30 +0200
changeset 33247 4d5d493ea54a
parent 33246 4d9458e06ef0
child 33248 be00b61e4c4a
configitems: register the 'format.usestore' config
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Fri Jun 30 03:42:29 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:42:30 2017 +0200
@@ -131,6 +131,9 @@
 coreconfigitem('format', 'usegeneraldelta',
     default=True,
 )
+coreconfigitem('format', 'usestore',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
--- a/mercurial/localrepo.py	Fri Jun 30 03:42:29 2017 +0200
+++ b/mercurial/localrepo.py	Fri Jun 30 03:42:30 2017 +0200
@@ -2074,7 +2074,7 @@
     """
     ui = repo.ui
     requirements = {'revlogv1'}
-    if ui.configbool('format', 'usestore', True):
+    if ui.configbool('format', 'usestore'):
         requirements.add('store')
         if ui.configbool('format', 'usefncache'):
             requirements.add('fncache')