From 1084baf8c534fe120315147b3698ec7ccae64738 Mon Sep 17 00:00:00 2001 From: Pierre-Yves David Date: Fri, 30 Jun 2017 03:31:35 +0200 Subject: [PATCH] configitems: register the 'bundle.reorder' config --- mercurial/changegroup.py | 2 +- mercurial/configitems.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py index 9c0cba72a5..9448c02bb1 100644 --- 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 index b656e85a8b..4df9f956fc 100644 --- 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', )