configitems: register the 'ui.interface.chunkselector' config
authorBoris Feld <boris.feld@octobus.net>
Wed, 11 Oct 2017 05:36:10 +0200
changeset 34616 c0dabec35019
parent 34615 32166736684e
child 34617 4876bf5a36fb
configitems: register the 'ui.interface.chunkselector' config
mercurial/configitems.py
mercurial/ui.py
--- a/mercurial/configitems.py	Wed Oct 11 05:18:20 2017 +0200
+++ b/mercurial/configitems.py	Wed Oct 11 05:36:10 2017 +0200
@@ -632,6 +632,9 @@
 coreconfigitem('ui', 'interface',
     default=None,
 )
+coreconfigitem('ui', 'interface.chunkselector',
+    default=None,
+)
 coreconfigitem('ui', 'logblockedtimes',
     default=False,
 )
--- a/mercurial/ui.py	Wed Oct 11 05:18:20 2017 +0200
+++ b/mercurial/ui.py	Wed Oct 11 05:36:10 2017 +0200
@@ -1149,7 +1149,7 @@
             defaultinterface = i
 
         choseninterface = defaultinterface
-        f = self.config("ui", "interface.%s" % feature, None)
+        f = self.config("ui", "interface.%s" % feature)
         if f in availableinterfaces:
             choseninterface = f