Patchwork [07,of,18] configitems: register the 'bundle.reorder' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 2:57 a.m.
Message ID <04082ca1d3c53378fc36.1498964255@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21897/
State Accepted
Headers show

Comments

Pierre-Yves David - July 2, 2017, 2:57 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498786295 -7200
#      Fri Jun 30 03:31:35 2017 +0200
# Node ID 04082ca1d3c53378fc36918ff3cf195ed57cd74b
# Parent  c38bc2d9680f7f1e132cd8a206fcdd1db3337081
# EXP-Topic config.register.core
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 04082ca1d3c5
configitems: register the 'bundle.reorder' config

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -483,7 +483,7 @@  class cg1packer(object):
             bundlecaps = set()
         self._bundlecaps = bundlecaps
         # experimental config: bundle.reorder
-        reorder = repo.ui.config('bundle', 'reorder', 'auto')
+        reorder = repo.ui.config('bundle', 'reorder')
         if reorder == 'auto':
             reorder = None
         else:
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -67,6 +67,10 @@  coreconfigitem('bookmarks', 'pushing',
 coreconfigitem('bundle', 'mainreporoot',
     default='',
 )
+# bundle.reorder: experimental config
+coreconfigitem('bundle', 'reorder',
+    default='auto',
+)
 coreconfigitem('color', 'mode',
     default='auto',
 )