Patchwork [04,of,17] configitems: register the 'format.dotencode' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <11709316c2514e6f4be4.1499209832@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21977/
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 1498786942 -7200
#      Fri Jun 30 03:42:22 2017 +0200
# Node ID 11709316c2514e6f4be4a15e070f057b8568d125
# Parent  50ce9211f36b5fd75d509a2a7d7dbf69c77bfb92
# 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 11709316c251
configitems: register the 'format.dotencode' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -110,6 +110,9 @@  coreconfigitem('format', 'aggressivemerg
 coreconfigitem('format', 'chunkcachesize',
     default=None,
 )
+coreconfigitem('format', 'dotencode',
+    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
@@ -2078,7 +2078,7 @@  def newreporequirements(repo):
         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')