Mercurial > hg-stable
changeset 33522:62b29ca72d1a
configitems: register the 'ui.color' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sat, 15 Jul 2017 14:14:53 +0200 |
parents | de1cb83728f8 |
children | 11025c4f1016 |
files | mercurial/color.py mercurial/configitems.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/color.py Sat Jul 15 14:14:46 2017 +0200 +++ b/mercurial/color.py Sat Jul 15 14:14:53 2017 +0200 @@ -183,7 +183,7 @@ def _modesetup(ui): if ui.plain(): return None - config = ui.config('ui', 'color', 'auto') + config = ui.config('ui', 'color') if config == 'debug': return 'debug'
--- a/mercurial/configitems.py Sat Jul 15 14:14:46 2017 +0200 +++ b/mercurial/configitems.py Sat Jul 15 14:14:53 2017 +0200 @@ -430,6 +430,9 @@ coreconfigitem('ui', 'clonebundles', default=True, ) +coreconfigitem('ui', 'color', + default='auto', +) coreconfigitem('ui', 'commitsubrepos', default=False, )