Mercurial > hg
comparison mercurial/color.py @ 31123:df0a0734304a
color: update main documentation
Now that the feature no longer lives in the extension, we document it in the
help of the core config. This include the new 'ui.color' option introduced in
the previous changesets.
As a result the color extensions can now be deprecated.
This is a documentation patch only; color is still disabled by default.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 21 Feb 2017 20:04:55 +0100 |
parents | 6483e49204ee |
children | 31d2ddfd338c |
comparison
equal
deleted
inserted
replaced
31122:53a60e95f154 | 31123:df0a0734304a |
---|---|
185 if ui.plain(): | 185 if ui.plain(): |
186 return None | 186 return None |
187 default = 'never' | 187 default = 'never' |
188 if _enabledbydefault: | 188 if _enabledbydefault: |
189 default = 'auto' | 189 default = 'auto' |
190 # experimental config: ui.color | |
191 config = ui.config('ui', 'color', default) | 190 config = ui.config('ui', 'color', default) |
192 if config == 'debug': | 191 if config == 'debug': |
193 return 'debug' | 192 return 'debug' |
194 | 193 |
195 auto = (config == 'auto') | 194 auto = (config == 'auto') |