##// END OF EJS Templates
status: use condwrite to avoid zero-width format string hack
Matt Mackall -
r17910:c8709ff5 default
parent child Browse files
Show More
@@ -5426,17 +5426,16 b' def status(ui, repo, *pats, **opts):'
5426 5426 copy = copies.pathcopies(repo[node1], repo[node2])
5427 5427
5428 5428 fm = ui.formatter('status', opts)
5429 format = '%s %s' + end
5430 if opts.get('no_status'):
5431 format = '%.0s%s' + end
5429 fmt = '%s' + end
5430 showchar = not opts.get('no_status')
5432 5431
5433 5432 for state, char, files in changestates:
5434 5433 if state in show:
5435 5434 label = 'status.' + state
5436 5435 for f in files:
5437 5436 fm.startitem()
5438 fm.write("status path", format, char,
5439 repo.pathto(f, cwd), label=label)
5437 fm.condwrite(showchar, 'status', '%s ', char, label=label)
5438 fm.write('path', fmt, repo.pathto(f, cwd), label=label)
5440 5439 if f in copy:
5441 5440 fm.write("copy", ' %s' + end, repo.pathto(copy[f], cwd),
5442 5441 label='status.copied')
@@ -68,9 +68,9 b' test issue2039'
68 68 $ touch "$A"
69 69 $ touch "$B"
70 70 $ hg status --color=always
71 \x1b[0;35;1;4m? foo\x1b[0m (esc)
71 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mfoo\x1b[0m (esc)
72 72 \x1b[0;35;1;4mbar\x1b[0m (esc)
73 \x1b[0;35;1;4m? foo\x1b[0m (esc)
73 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mfoo\x1b[0m (esc)
74 74 \x1b[0;35;1;4mbar.baz\x1b[0m (esc)
75 75
76 76 $ cd ..
@@ -198,11 +198,11 b' add an untracked file'
198 198 status --mq with color (issue2096)
199 199
200 200 $ hg status --mq --config extensions.color= --config color.mode=ansi --color=always
201 \x1b[0;32;1mA .hgignore\x1b[0m (esc)
202 \x1b[0;32;1mA A\x1b[0m (esc)
203 \x1b[0;32;1mA B\x1b[0m (esc)
204 \x1b[0;32;1mA series\x1b[0m (esc)
205 \x1b[0;35;1;4m? flaf\x1b[0m (esc)
201 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1m.hgignore\x1b[0m (esc)
202 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mA\x1b[0m (esc)
203 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mB\x1b[0m (esc)
204 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mseries\x1b[0m (esc)
205 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mflaf\x1b[0m (esc)
206 206
207 207 try the --mq option on a command provided by an extension
208 208
@@ -15,100 +15,100 b' Terminfo codes compatibility fix'
15 15 hg status in repo root:
16 16
17 17 $ hg status --color=always
18 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
19 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
20 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
21 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
22 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
23 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
18 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
19 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
20 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
21 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
22 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
23 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
24 24
25 25 hg status . in repo root:
26 26
27 27 $ hg status --color=always .
28 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
29 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
30 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
31 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
32 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
33 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
28 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
29 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
30 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
31 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
32 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
33 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
34 34
35 35 $ hg status --color=always --cwd a
36 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
37 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
38 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
39 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
40 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
41 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
36 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
37 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
38 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
39 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
40 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
41 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
42 42 $ hg status --color=always --cwd a .
43 \x1b[0;35;1;4m? 1/in_a_1\x1b[0m (esc)
44 \x1b[0;35;1;4m? in_a\x1b[0m (esc)
43 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m1/in_a_1\x1b[0m (esc)
44 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_a\x1b[0m (esc)
45 45 $ hg status --color=always --cwd a ..
46 \x1b[0;35;1;4m? 1/in_a_1\x1b[0m (esc)
47 \x1b[0;35;1;4m? in_a\x1b[0m (esc)
48 \x1b[0;35;1;4m? ../b/1/in_b_1\x1b[0m (esc)
49 \x1b[0;35;1;4m? ../b/2/in_b_2\x1b[0m (esc)
50 \x1b[0;35;1;4m? ../b/in_b\x1b[0m (esc)
51 \x1b[0;35;1;4m? ../in_root\x1b[0m (esc)
46 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m1/in_a_1\x1b[0m (esc)
47 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_a\x1b[0m (esc)
48 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../b/1/in_b_1\x1b[0m (esc)
49 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../b/2/in_b_2\x1b[0m (esc)
50 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../b/in_b\x1b[0m (esc)
51 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_root\x1b[0m (esc)
52 52
53 53 $ hg status --color=always --cwd b
54 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
55 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
56 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
57 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
58 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
59 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
54 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
55 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
56 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
57 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
58 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
59 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
60 60 $ hg status --color=always --cwd b .
61 \x1b[0;35;1;4m? 1/in_b_1\x1b[0m (esc)
62 \x1b[0;35;1;4m? 2/in_b_2\x1b[0m (esc)
63 \x1b[0;35;1;4m? in_b\x1b[0m (esc)
61 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m1/in_b_1\x1b[0m (esc)
62 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m2/in_b_2\x1b[0m (esc)
63 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b\x1b[0m (esc)
64 64 $ hg status --color=always --cwd b ..
65 \x1b[0;35;1;4m? ../a/1/in_a_1\x1b[0m (esc)
66 \x1b[0;35;1;4m? ../a/in_a\x1b[0m (esc)
67 \x1b[0;35;1;4m? 1/in_b_1\x1b[0m (esc)
68 \x1b[0;35;1;4m? 2/in_b_2\x1b[0m (esc)
69 \x1b[0;35;1;4m? in_b\x1b[0m (esc)
70 \x1b[0;35;1;4m? ../in_root\x1b[0m (esc)
65 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../a/1/in_a_1\x1b[0m (esc)
66 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../a/in_a\x1b[0m (esc)
67 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m1/in_b_1\x1b[0m (esc)
68 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m2/in_b_2\x1b[0m (esc)
69 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b\x1b[0m (esc)
70 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_root\x1b[0m (esc)
71 71
72 72 $ hg status --color=always --cwd a/1
73 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
74 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
75 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
76 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
77 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
78 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
73 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
74 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
75 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
76 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
77 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
78 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
79 79 $ hg status --color=always --cwd a/1 .
80 \x1b[0;35;1;4m? in_a_1\x1b[0m (esc)
80 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_a_1\x1b[0m (esc)
81 81 $ hg status --color=always --cwd a/1 ..
82 \x1b[0;35;1;4m? in_a_1\x1b[0m (esc)
83 \x1b[0;35;1;4m? ../in_a\x1b[0m (esc)
82 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_a_1\x1b[0m (esc)
83 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_a\x1b[0m (esc)
84 84
85 85 $ hg status --color=always --cwd b/1
86 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
87 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
88 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
89 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
90 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
91 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
86 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
87 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
88 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
89 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
90 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
91 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
92 92 $ hg status --color=always --cwd b/1 .
93 \x1b[0;35;1;4m? in_b_1\x1b[0m (esc)
93 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_1\x1b[0m (esc)
94 94 $ hg status --color=always --cwd b/1 ..
95 \x1b[0;35;1;4m? in_b_1\x1b[0m (esc)
96 \x1b[0;35;1;4m? ../2/in_b_2\x1b[0m (esc)
97 \x1b[0;35;1;4m? ../in_b\x1b[0m (esc)
95 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_1\x1b[0m (esc)
96 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../2/in_b_2\x1b[0m (esc)
97 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_b\x1b[0m (esc)
98 98
99 99 $ hg status --color=always --cwd b/2
100 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
101 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
102 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
103 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
104 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
105 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
100 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/1/in_a_1\x1b[0m (esc)
101 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4ma/in_a\x1b[0m (esc)
102 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/1/in_b_1\x1b[0m (esc)
103 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/2/in_b_2\x1b[0m (esc)
104 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4mb/in_b\x1b[0m (esc)
105 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_root\x1b[0m (esc)
106 106 $ hg status --color=always --cwd b/2 .
107 \x1b[0;35;1;4m? in_b_2\x1b[0m (esc)
107 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4min_b_2\x1b[0m (esc)
108 108 $ hg status --color=always --cwd b/2 ..
109 \x1b[0;35;1;4m? ../1/in_b_1\x1b[0m (esc)
110 \x1b[0;35;1;4m? in_b_2\x1b[0m (esc)
111 \x1b[0;35;1;4m? ../in_b\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)
111 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4m../in_b\x1b[0m (esc)
112 112 $ cd ..
113 113
114 114 $ hg init repo2
@@ -128,59 +128,59 b' hg status . in repo root:'
128 128 hg status:
129 129
130 130 $ hg status --color=always
131 \x1b[0;32;1mA added\x1b[0m (esc)
132 \x1b[0;31;1mR removed\x1b[0m (esc)
133 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
134 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
131 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
132 \x1b[0;31;1mR \x1b[0m\x1b[0;31;1mremoved\x1b[0m (esc)
133 \x1b[0;36;1;4m! \x1b[0m\x1b[0;36;1;4mdeleted\x1b[0m (esc)
134 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4munknown\x1b[0m (esc)
135 135
136 136 hg status modified added removed deleted unknown never-existed ignored:
137 137
138 138 $ hg status --color=always modified added removed deleted unknown never-existed ignored
139 139 never-existed: * (glob)
140 \x1b[0;32;1mA added\x1b[0m (esc)
141 \x1b[0;31;1mR removed\x1b[0m (esc)
142 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
143 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
140 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
141 \x1b[0;31;1mR \x1b[0m\x1b[0;31;1mremoved\x1b[0m (esc)
142 \x1b[0;36;1;4m! \x1b[0m\x1b[0;36;1;4mdeleted\x1b[0m (esc)
143 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4munknown\x1b[0m (esc)
144 144
145 145 $ hg copy modified copied
146 146
147 147 hg status -C:
148 148
149 149 $ hg status --color=always -C
150 \x1b[0;32;1mA added\x1b[0m (esc)
151 \x1b[0;32;1mA copied\x1b[0m (esc)
150 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
151 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mcopied\x1b[0m (esc)
152 152 \x1b[0;0m modified\x1b[0m (esc)
153 \x1b[0;31;1mR removed\x1b[0m (esc)
154 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
155 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
153 \x1b[0;31;1mR \x1b[0m\x1b[0;31;1mremoved\x1b[0m (esc)
154 \x1b[0;36;1;4m! \x1b[0m\x1b[0;36;1;4mdeleted\x1b[0m (esc)
155 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4munknown\x1b[0m (esc)
156 156
157 157 hg status -A:
158 158
159 159 $ hg status --color=always -A
160 \x1b[0;32;1mA added\x1b[0m (esc)
161 \x1b[0;32;1mA copied\x1b[0m (esc)
160 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
161 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mcopied\x1b[0m (esc)
162 162 \x1b[0;0m modified\x1b[0m (esc)
163 \x1b[0;31;1mR removed\x1b[0m (esc)
164 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
165 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
166 \x1b[0;30;1mI ignored\x1b[0m (esc)
167 \x1b[0;0mC .hgignore\x1b[0m (esc)
168 \x1b[0;0mC modified\x1b[0m (esc)
163 \x1b[0;31;1mR \x1b[0m\x1b[0;31;1mremoved\x1b[0m (esc)
164 \x1b[0;36;1;4m! \x1b[0m\x1b[0;36;1;4mdeleted\x1b[0m (esc)
165 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4munknown\x1b[0m (esc)
166 \x1b[0;30;1mI \x1b[0m\x1b[0;30;1mignored\x1b[0m (esc)
167 \x1b[0;0mC \x1b[0m\x1b[0;0m.hgignore\x1b[0m (esc)
168 \x1b[0;0mC \x1b[0m\x1b[0;0mmodified\x1b[0m (esc)
169 169
170 170 hg status -A (with terminfo color):
171 171
172 172 $ mkdir "$TESTTMP/terminfo"
173 173 $ TERMINFO="$TESTTMP/terminfo" tic "$TESTDIR/hgterm.ti"
174 174 $ TERM=hgterm TERMINFO="$TESTTMP/terminfo" hg status --config color.mode=terminfo --color=always -A
175 \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc)
176 \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc)
175 \x1b[30m\x1b[32m\x1b[1mA \x1b[30m\x1b[30m\x1b[32m\x1b[1madded\x1b[30m (esc)
176 \x1b[30m\x1b[32m\x1b[1mA \x1b[30m\x1b[30m\x1b[32m\x1b[1mcopied\x1b[30m (esc)
177 177 \x1b[30m\x1b[30m modified\x1b[30m (esc)
178 \x1b[30m\x1b[31m\x1b[1mR removed\x1b[30m (esc)
179 \x1b[30m\x1b[36m\x1b[1m\x1b[4m! deleted\x1b[30m (esc)
180 \x1b[30m\x1b[35m\x1b[1m\x1b[4m? unknown\x1b[30m (esc)
181 \x1b[30m\x1b[30m\x1b[1mI ignored\x1b[30m (esc)
182 \x1b[30m\x1b[30mC .hgignore\x1b[30m (esc)
183 \x1b[30m\x1b[30mC modified\x1b[30m (esc)
178 \x1b[30m\x1b[31m\x1b[1mR \x1b[30m\x1b[30m\x1b[31m\x1b[1mremoved\x1b[30m (esc)
179 \x1b[30m\x1b[36m\x1b[1m\x1b[4m! \x1b[30m\x1b[30m\x1b[36m\x1b[1m\x1b[4mdeleted\x1b[30m (esc)
180 \x1b[30m\x1b[35m\x1b[1m\x1b[4m? \x1b[30m\x1b[30m\x1b[35m\x1b[1m\x1b[4munknown\x1b[30m (esc)
181 \x1b[30m\x1b[30m\x1b[1mI \x1b[30m\x1b[30m\x1b[30m\x1b[1mignored\x1b[30m (esc)
182 \x1b[30m\x1b[30mC \x1b[30m\x1b[30m\x1b[30m.hgignore\x1b[30m (esc)
183 \x1b[30m\x1b[30mC \x1b[30m\x1b[30m\x1b[30mmodified\x1b[30m (esc)
184 184
185 185
186 186 $ echo "^ignoreddir$" > .hgignore
@@ -194,7 +194,7 b' hg status ignoreddir/file:'
194 194 hg status -i ignoreddir/file:
195 195
196 196 $ hg status --color=always -i ignoreddir/file
197 \x1b[0;30;1mI ignoreddir/file\x1b[0m (esc)
197 \x1b[0;30;1mI \x1b[0m\x1b[0;30;1mignoreddir/file\x1b[0m (esc)
198 198 $ cd ..
199 199
200 200 check 'status -q' and some combinations
@@ -220,11 +220,11 b' test unknown color'
220 220 $ hg --config color.status.modified=periwinkle status --color=always
221 221 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
222 222 M modified
223 \x1b[0;32;1mA added\x1b[0m (esc)
224 \x1b[0;32;1mA copied\x1b[0m (esc)
225 \x1b[0;31;1mR removed\x1b[0m (esc)
226 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
227 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
223 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
224 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mcopied\x1b[0m (esc)
225 \x1b[0;31;1mR \x1b[0m\x1b[0;31;1mremoved\x1b[0m (esc)
226 \x1b[0;36;1;4m! \x1b[0m\x1b[0;36;1;4mdeleted\x1b[0m (esc)
227 \x1b[0;35;1;4m? \x1b[0m\x1b[0;35;1;4munknown\x1b[0m (esc)
228 228
229 229 Run status with 2 different flags.
230 230 Check if result is the same or different.
General Comments 0
You need to be logged in to leave comments. Login now