configitems: register the 'format.dotencode' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:42:22 +0200
changeset 33237 7043e67cc9b2
parent 33236 cf6c478bc339
child 33238 784f2bd96d43
configitems: register the 'format.dotencode' config
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Fri Jun 30 03:42:21 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:42:22 2017 +0200
@@ -110,6 +110,9 @@
 coreconfigitem('format', 'chunkcachesize',
     default=None,
 )
+coreconfigitem('format', 'dotencode',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
--- a/mercurial/localrepo.py	Fri Jun 30 03:42:21 2017 +0200
+++ b/mercurial/localrepo.py	Fri Jun 30 03:42:22 2017 +0200
@@ -2078,7 +2078,7 @@
         requirements.add('store')
         if ui.configbool('format', 'usefncache', True):
             requirements.add('fncache')
-            if ui.configbool('format', 'dotencode', True):
+            if ui.configbool('format', 'dotencode'):
                 requirements.add('dotencode')
 
     compengine = ui.config('experimental', 'format.compression', 'zlib')