Show More
@@ -181,7 +181,7 def setup(ui): | |||||
181 | configstyles(ui) |
|
181 | configstyles(ui) | |
182 |
|
182 | |||
183 | def _modesetup(ui): |
|
183 | def _modesetup(ui): | |
184 | if ui.plain(): |
|
184 | if ui.plain('color'): | |
185 | return None |
|
185 | return None | |
186 | config = ui.config('ui', 'color') |
|
186 | config = ui.config('ui', 'color') | |
187 | if config == 'debug': |
|
187 | if config == 'debug': |
@@ -65,6 +65,8 HGPLAINEXCEPT | |||||
65 |
|
65 | |||
66 | ``alias`` |
|
66 | ``alias`` | |
67 | Don't remove aliases. |
|
67 | Don't remove aliases. | |
|
68 | ``color`` | |||
|
69 | Don't disable colored output. | |||
68 | ``i18n`` |
|
70 | ``i18n`` | |
69 | Preserve internationalization. |
|
71 | Preserve internationalization. | |
70 | ``revsetalias`` |
|
72 | ``revsetalias`` |
@@ -29,6 +29,22 hg status in repo root: | |||||
29 | [status.unknown|? ][status.unknown|b/2/in_b_2] |
|
29 | [status.unknown|? ][status.unknown|b/2/in_b_2] | |
30 | [status.unknown|? ][status.unknown|b/in_b] |
|
30 | [status.unknown|? ][status.unknown|b/in_b] | |
31 | [status.unknown|? ][status.unknown|in_root] |
|
31 | [status.unknown|? ][status.unknown|in_root] | |
|
32 | HGPLAIN disables color | |||
|
33 | $ HGPLAIN=1 hg status --color=debug | |||
|
34 | ? a/1/in_a_1 | |||
|
35 | ? a/in_a | |||
|
36 | ? b/1/in_b_1 | |||
|
37 | ? b/2/in_b_2 | |||
|
38 | ? b/in_b | |||
|
39 | ? in_root | |||
|
40 | HGPLAINEXCEPT=color does not disable color | |||
|
41 | $ HGPLAINEXCEPT=color hg status --color=debug | |||
|
42 | [status.unknown|? ][status.unknown|a/1/in_a_1] | |||
|
43 | [status.unknown|? ][status.unknown|a/in_a] | |||
|
44 | [status.unknown|? ][status.unknown|b/1/in_b_1] | |||
|
45 | [status.unknown|? ][status.unknown|b/2/in_b_2] | |||
|
46 | [status.unknown|? ][status.unknown|b/in_b] | |||
|
47 | [status.unknown|? ][status.unknown|in_root] | |||
32 |
|
48 | |||
33 | hg status with template |
|
49 | hg status with template | |
34 | $ hg status -T "{label('red', path)}\n" --color=debug |
|
50 | $ hg status -T "{label('red', path)}\n" --color=debug |
General Comments 0
You need to be logged in to leave comments.
Login now