[PATCH 12 of 17] configitems: register the 'format.usefncache' config
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Jul 4 23:10:40 UTC 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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
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')
More information about the Mercurial-devel
mailing list