configitems: register the 'bundle.reorder' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:31:35 +0200
changeset 33183 9f95f0bb343b
parent 33182 634997248c97
child 33184 649f3b0495c8
configitems: register the 'bundle.reorder' config
mercurial/changegroup.py
mercurial/configitems.py
--- a/mercurial/changegroup.py	Fri Jun 30 03:31:26 2017 +0200
+++ b/mercurial/changegroup.py	Fri Jun 30 03:31:35 2017 +0200
@@ -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	Fri Jun 30 03:31:26 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:31:35 2017 +0200
@@ -67,6 +67,10 @@
 coreconfigitem('bundle', 'mainreporoot',
     default='',
 )
+# bundle.reorder: experimental config
+coreconfigitem('bundle', 'reorder',
+    default='auto',
+)
 coreconfigitem('color', 'mode',
     default='auto',
 )