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

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <330a40ec6d0bb52e4846.1499209842@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21984/
State Accepted
Headers show

Comments

Pierre-Yves David - July 4, 2017, 11:10 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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

Patch

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')