changeset 33247:4d5d493ea54a

configitems: register the 'format.usestore' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:42:30 +0200
parents 4d9458e06ef0
children be00b61e4c4a
files mercurial/configitems.py mercurial/localrepo.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')