Patchwork [12,of,17] configitems: register the 'format.usefncache' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <6df8e5a37f4e7377ac0c.1499209840@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21981/
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 1498786948 -7200
#      Fri Jun 30 03:42:28 2017 +0200
# Node ID 6df8e5a37f4e7377ac0c21630668cb0d7a562a6f
# Parent  7d806bc023248307ba9b5d39cf640cf84bc680a2
# 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 6df8e5a37f4e
configitems: register the 'format.usefncache' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -125,6 +125,9 @@  coreconfigitem('format', 'maxchainlen',
 coreconfigitem('format', 'obsstore-version',
     default=None,
 )
+coreconfigitem('format', 'usefncache',
+    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
@@ -2076,7 +2076,7 @@  def newreporequirements(repo):
     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')