changeset 33966:9f95f0bb343b

configitems: register the 'bundle.reorder' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:31:35 +0200
parents 634997248c97
children 649f3b0495c8
files mercurial/changegroup.py mercurial/configitems.py
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -483,7 +483,7 @@
             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:
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -67,6 +67,10 @@
 coreconfigitem('bundle', 'mainreporoot',
     default='',
 )
+# bundle.reorder: experimental config
+coreconfigitem('bundle', 'reorder',
+    default='auto',
+)
 coreconfigitem('color', 'mode',
     default='auto',
 )