Show More
@@ -189,8 +189,6 b' command = cmdutil.command(cmdtable)' | |||||
189 | testedwith = 'ships-with-hg-core' |
|
189 | testedwith = 'ships-with-hg-core' | |
190 |
|
190 | |||
191 | def uisetup(ui): |
|
191 | def uisetup(ui): | |
192 | if ui.plain(): |
|
|||
193 | return |
|
|||
194 | def colorcmd(orig, ui_, opts, cmd, cmdfunc): |
|
192 | def colorcmd(orig, ui_, opts, cmd, cmdfunc): | |
195 | mode = color._modesetup(ui_, opts['color']) |
|
193 | mode = color._modesetup(ui_, opts['color']) | |
196 | uimod.ui._colormode = mode |
|
194 | uimod.ui._colormode = mode |
@@ -162,6 +162,8 b' def _terminfosetup(ui, mode):' | |||||
162 | _terminfo_params.clear() |
|
162 | _terminfo_params.clear() | |
163 |
|
163 | |||
164 | def _modesetup(ui, coloropt): |
|
164 | def _modesetup(ui, coloropt): | |
|
165 | if ui.plain(): | |||
|
166 | return None | |||
165 | if coloropt == 'debug': |
|
167 | if coloropt == 'debug': | |
166 | return 'debug' |
|
168 | return 'debug' | |
167 |
|
169 |
General Comments 0
You need to be logged in to leave comments.
Login now