Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 34616:c0dabec35019
configitems: register the 'ui.interface.chunkselector' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 05:36:10 +0200 |
parents | 63c19b7fa100 |
children | 75979c8d4572 |
comparison
equal
deleted
inserted
replaced
34615:32166736684e | 34616:c0dabec35019 |
---|---|
1147 i = self.config("ui", "interface") | 1147 i = self.config("ui", "interface") |
1148 if i in alldefaults: | 1148 if i in alldefaults: |
1149 defaultinterface = i | 1149 defaultinterface = i |
1150 | 1150 |
1151 choseninterface = defaultinterface | 1151 choseninterface = defaultinterface |
1152 f = self.config("ui", "interface.%s" % feature, None) | 1152 f = self.config("ui", "interface.%s" % feature) |
1153 if f in availableinterfaces: | 1153 if f in availableinterfaces: |
1154 choseninterface = f | 1154 choseninterface = f |
1155 | 1155 |
1156 if i is not None and defaultinterface != i: | 1156 if i is not None and defaultinterface != i: |
1157 if f is not None: | 1157 if f is not None: |