[PATCH 14 of 17] configitems: register the 'format.usestore' config

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Jul 4 19:10:42 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1498786950 -7200
#      Fri Jun 30 03:42:30 2017 +0200
# Node ID 330a40ec6d0bb52e4846a212af6cd42dc50a6a2a
# Parent  7e141d75caf9409e42598a9b40521becbc67fef8
# EXP-Topic config.register.format
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 330a40ec6d0b
configitems: register the 'format.usestore' config

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -131,6 +131,9 @@ coreconfigitem('format', 'usefncache',
 coreconfigitem('format', 'usegeneraldelta',
     default=True,
 )
+coreconfigitem('format', 'usestore',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2074,7 +2074,7 @@ def newreporequirements(repo):
     """
     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')


More information about the Mercurial-devel mailing list