comparison tests/test-status-color.t @ 19073:d78d0256198e stable

color: set _colormode to None when mode is unset (issue3895) Previously, colorui assumed that it would only be called when mode wasn't None. 7ae12ce87594 changed that, so now colorui needs to care about whether it should colorize output.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 19 Apr 2013 16:57:10 -0700
parents c8709ff57ff2
children a1922b9a2cad
comparison
equal deleted inserted replaced
19072:b7b50a54bec9 19073:d78d0256198e
107 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_2\x1b[0m (esc) 107 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_2\x1b[0m (esc)
108 $ hg status --color=always --cwd b/2 .. 108 $ hg status --color=always --cwd b/2 ..
109 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../1/in_b_1\x1b[0m (esc) 109 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../1/in_b_1\x1b[0m (esc)
110 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_2\x1b[0m (esc) 110 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_2\x1b[0m (esc)
111 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_b\x1b[0m (esc) 111 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_b\x1b[0m (esc)
112
113 Make sure --color=never works
114 $ hg status --color=never
115 ? a/1/in_a_1
116 ? a/in_a
117 ? b/1/in_b_1
118 ? b/2/in_b_2
119 ? b/in_b
120 ? in_root
121
112 $ cd .. 122 $ cd ..
113 123
114 $ hg init repo2 124 $ hg init repo2
115 $ cd repo2 125 $ cd repo2
116 $ touch modified removed deleted ignored 126 $ touch modified removed deleted ignored