##// END OF EJS Templates
map-cmdline.bisect: rewrite to just %include the default template...
Jordi Gutiérrez Hermoso -
r25007:7c324f65 default
parent child Browse files
Show More
@@ -1,25 +1,14 b''
1 changeset = 'changeset: {rev}:{node|short}\nbisect: {bisect}\n{branches}{bookmarks}{tags}{parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n'
1 %include map-cmdline.default
2 changeset_quiet = '{bisect|shortbisect} {rev}:{node|short}\n'
2
3 changeset_verbose = 'changeset: {rev}:{node|short}\nbisect: {bisect}\n{branches}{bookmarks}{tags}{parents}user: {author}\ndate: {date|date}\n{files}{file_copies_switch}description:\n{desc|strip}\n\n\n'
3 changeset = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{user}{ldate}{summary}\n'
4 changeset_debug = 'changeset: {rev}:{node}\nbisect: {bisect}\n{branches}{bookmarks}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{file_mods}{file_adds}{file_dels}{file_copies_switch}{extras}description:\n{desc|strip}\n\n\n'
4 changeset_quiet = '{lshortbisect} {rev}:{node|short}\n'
5 start_files = 'files: '
5 changeset_verbose = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{user}{ldate}{lfiles}{lfile_copies_switch}{description}\n'
6 file = ' {file}'
6 changeset_debug = '{fullcset}{lbisect}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n'
7 end_files = '\n'
7
8 start_file_mods = 'files: '
8 # We take the zeroth word in order to omit "(implicit)" in the label
9 file_mod = ' {file_mod}'
9 bisectlabel = ' bisect.{word('0', bisect)}'
10 end_file_mods = '\n'
10
11 start_file_adds = 'files+: '
11 lbisect ='{label("log.bisect{if(bisect, bisectlabel)}",
12 file_add = ' {file_add}'
12 "bisect: {bisect}\n")}'
13 end_file_adds = '\n'
13 lshortbisect ='{label("log.bisect{if(bisect, bisectlabel)}",
14 start_file_dels = 'files-: '
14 "{bisect|shortbisect}")}'
15 file_del = ' {file_del}'
16 end_file_dels = '\n'
17 start_file_copies = 'copies: '
18 file_copy = ' {name} ({source})'
19 end_file_copies = '\n'
20 parent = 'parent: {rev}:{node|formatnode}\n'
21 manifest = 'manifest: {rev}:{node}\n'
22 branch = 'branch: {branch}\n'
23 tag = 'tag: {tag}\n'
24 bookmark = 'bookmark: {bookmark}\n'
25 extra = 'extra: {key}={value|stringescape}\n'
@@ -230,3 +230,20 b' test style'
230 I 2:e1355ee1f23e
230 I 2:e1355ee1f23e
231 G 1:ce7c85e06a9f
231 G 1:ce7c85e06a9f
232 G 0:b4e73ffab476
232 G 0:b4e73ffab476
233
234 $ hg --config extensions.color= --color=debug log --quiet --style bisect
235 [log.bisect| ] 14:cbf2f3105bbf
236 [log.bisect| ] 13:e07efca37c43
237 [log.bisect bisect.bad|B] 12:98c6b56349c0
238 [log.bisect bisect.bad|B] 11:03f491376e63
239 [log.bisect bisect.bad|B] 10:c012b15e2409
240 [log.bisect bisect.untested|U] 9:2197c557e14c
241 [log.bisect bisect.untested|U] 8:e74a86251f58
242 [log.bisect bisect.skipped|S] 7:a5f87041c899
243 [log.bisect bisect.good|G] 6:7d997bedcd8d
244 [log.bisect bisect.good|G] 5:2dd1875f1028
245 [log.bisect bisect.good|G] 4:2a1daef14cd4
246 [log.bisect bisect.ignored|I] 3:8417d459b90c
247 [log.bisect bisect.ignored|I] 2:e1355ee1f23e
248 [log.bisect bisect.good|G] 1:ce7c85e06a9f
249 [log.bisect bisect.good|G] 0:b4e73ffab476
@@ -2153,6 +2153,326 b' Check the status template'
2153 $ hg --color=debug log -T status -C -r 10 --quiet
2153 $ hg --color=debug log -T status -C -r 10 --quiet
2154 [log.node|10:0f9759ec227a]
2154 [log.node|10:0f9759ec227a]
2155
2155
2156 Check the bisect template
2157
2158 $ hg bisect -g 1
2159 $ hg bisect -b 3 --noupdate
2160 Testing changeset 2:97054abb4ab8 (2 changesets remaining, ~1 tests)
2161 $ hg log -T bisect -r 0:4
2162 changeset: 0:1e4e1b8f71e0
2163 bisect: good (implicit)
2164 user: User Name <user@hostname>
2165 date: Mon Jan 12 13:46:40 1970 +0000
2166 summary: line 1
2167
2168 changeset: 1:b608e9d1a3f0
2169 bisect: good
2170 user: A. N. Other <other@place>
2171 date: Tue Jan 13 17:33:20 1970 +0000
2172 summary: other 1
2173
2174 changeset: 2:97054abb4ab8
2175 bisect: untested
2176 user: other@place
2177 date: Wed Jan 14 21:20:00 1970 +0000
2178 summary: no person
2179
2180 changeset: 3:10e46f2dcbf4
2181 bisect: bad
2182 user: person
2183 date: Fri Jan 16 01:06:40 1970 +0000
2184 summary: no user, no domain
2185
2186 changeset: 4:bbe44766e73d
2187 bisect: bad (implicit)
2188 branch: foo
2189 user: person
2190 date: Sat Jan 17 04:53:20 1970 +0000
2191 summary: new branch
2192
2193 $ hg log --debug -T bisect -r 0:4
2194 changeset: 0:1e4e1b8f71e05681d422154f5421e385fec3454f
2195 bisect: good (implicit)
2196 phase: public
2197 parent: -1:0000000000000000000000000000000000000000
2198 parent: -1:0000000000000000000000000000000000000000
2199 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
2200 user: User Name <user@hostname>
2201 date: Mon Jan 12 13:46:40 1970 +0000
2202 files+: a
2203 extra: branch=default
2204 description:
2205 line 1
2206 line 2
2207
2208
2209 changeset: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965
2210 bisect: good
2211 phase: public
2212 parent: 0:1e4e1b8f71e05681d422154f5421e385fec3454f
2213 parent: -1:0000000000000000000000000000000000000000
2214 manifest: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
2215 user: A. N. Other <other@place>
2216 date: Tue Jan 13 17:33:20 1970 +0000
2217 files+: b
2218 extra: branch=default
2219 description:
2220 other 1
2221 other 2
2222
2223 other 3
2224
2225
2226 changeset: 2:97054abb4ab824450e9164180baf491ae0078465
2227 bisect: untested
2228 phase: public
2229 parent: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965
2230 parent: -1:0000000000000000000000000000000000000000
2231 manifest: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
2232 user: other@place
2233 date: Wed Jan 14 21:20:00 1970 +0000
2234 files+: c
2235 extra: branch=default
2236 description:
2237 no person
2238
2239
2240 changeset: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47
2241 bisect: bad
2242 phase: public
2243 parent: 2:97054abb4ab824450e9164180baf491ae0078465
2244 parent: -1:0000000000000000000000000000000000000000
2245 manifest: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
2246 user: person
2247 date: Fri Jan 16 01:06:40 1970 +0000
2248 files: c
2249 extra: branch=default
2250 description:
2251 no user, no domain
2252
2253
2254 changeset: 4:bbe44766e73d5f11ed2177f1838de10c53ef3e74
2255 bisect: bad (implicit)
2256 branch: foo
2257 phase: draft
2258 parent: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47
2259 parent: -1:0000000000000000000000000000000000000000
2260 manifest: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
2261 user: person
2262 date: Sat Jan 17 04:53:20 1970 +0000
2263 extra: branch=foo
2264 description:
2265 new branch
2266
2267
2268 $ hg log -v -T bisect -r 0:4
2269 changeset: 0:1e4e1b8f71e0
2270 bisect: good (implicit)
2271 user: User Name <user@hostname>
2272 date: Mon Jan 12 13:46:40 1970 +0000
2273 files: a
2274 description:
2275 line 1
2276 line 2
2277
2278
2279 changeset: 1:b608e9d1a3f0
2280 bisect: good
2281 user: A. N. Other <other@place>
2282 date: Tue Jan 13 17:33:20 1970 +0000
2283 files: b
2284 description:
2285 other 1
2286 other 2
2287
2288 other 3
2289
2290
2291 changeset: 2:97054abb4ab8
2292 bisect: untested
2293 user: other@place
2294 date: Wed Jan 14 21:20:00 1970 +0000
2295 files: c
2296 description:
2297 no person
2298
2299
2300 changeset: 3:10e46f2dcbf4
2301 bisect: bad
2302 user: person
2303 date: Fri Jan 16 01:06:40 1970 +0000
2304 files: c
2305 description:
2306 no user, no domain
2307
2308
2309 changeset: 4:bbe44766e73d
2310 bisect: bad (implicit)
2311 branch: foo
2312 user: person
2313 date: Sat Jan 17 04:53:20 1970 +0000
2314 description:
2315 new branch
2316
2317
2318 $ hg --color=debug log -T bisect -r 0:4
2319 [log.changeset changeset.public|changeset: 0:1e4e1b8f71e0]
2320 [log.bisect bisect.good|bisect: good (implicit)]
2321 [log.user|user: User Name <user@hostname>]
2322 [log.date|date: Mon Jan 12 13:46:40 1970 +0000]
2323 [log.summary|summary: line 1]
2324
2325 [log.changeset changeset.public|changeset: 1:b608e9d1a3f0]
2326 [log.bisect bisect.good|bisect: good]
2327 [log.user|user: A. N. Other <other@place>]
2328 [log.date|date: Tue Jan 13 17:33:20 1970 +0000]
2329 [log.summary|summary: other 1]
2330
2331 [log.changeset changeset.public|changeset: 2:97054abb4ab8]
2332 [log.bisect bisect.untested|bisect: untested]
2333 [log.user|user: other@place]
2334 [log.date|date: Wed Jan 14 21:20:00 1970 +0000]
2335 [log.summary|summary: no person]
2336
2337 [log.changeset changeset.public|changeset: 3:10e46f2dcbf4]
2338 [log.bisect bisect.bad|bisect: bad]
2339 [log.user|user: person]
2340 [log.date|date: Fri Jan 16 01:06:40 1970 +0000]
2341 [log.summary|summary: no user, no domain]
2342
2343 [log.changeset changeset.draft|changeset: 4:bbe44766e73d]
2344 [log.bisect bisect.bad|bisect: bad (implicit)]
2345 [log.branch|branch: foo]
2346 [log.user|user: person]
2347 [log.date|date: Sat Jan 17 04:53:20 1970 +0000]
2348 [log.summary|summary: new branch]
2349
2350 $ hg --color=debug log --debug -T bisect -r 0:4
2351 [log.changeset changeset.public|changeset: 0:1e4e1b8f71e05681d422154f5421e385fec3454f]
2352 [log.bisect bisect.good|bisect: good (implicit)]
2353 [log.phase|phase: public]
2354 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2355 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2356 [ui.debug log.manifest|manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0]
2357 [log.user|user: User Name <user@hostname>]
2358 [log.date|date: Mon Jan 12 13:46:40 1970 +0000]
2359 [ui.debug log.files|files+: a]
2360 [ui.debug log.extra|extra: branch=default]
2361 [ui.note log.description|description:]
2362 [ui.note log.description|line 1
2363 line 2]
2364
2365
2366 [log.changeset changeset.public|changeset: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965]
2367 [log.bisect bisect.good|bisect: good]
2368 [log.phase|phase: public]
2369 [log.parent changeset.public|parent: 0:1e4e1b8f71e05681d422154f5421e385fec3454f]
2370 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2371 [ui.debug log.manifest|manifest: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55]
2372 [log.user|user: A. N. Other <other@place>]
2373 [log.date|date: Tue Jan 13 17:33:20 1970 +0000]
2374 [ui.debug log.files|files+: b]
2375 [ui.debug log.extra|extra: branch=default]
2376 [ui.note log.description|description:]
2377 [ui.note log.description|other 1
2378 other 2
2379
2380 other 3]
2381
2382
2383 [log.changeset changeset.public|changeset: 2:97054abb4ab824450e9164180baf491ae0078465]
2384 [log.bisect bisect.untested|bisect: untested]
2385 [log.phase|phase: public]
2386 [log.parent changeset.public|parent: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965]
2387 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2388 [ui.debug log.manifest|manifest: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1]
2389 [log.user|user: other@place]
2390 [log.date|date: Wed Jan 14 21:20:00 1970 +0000]
2391 [ui.debug log.files|files+: c]
2392 [ui.debug log.extra|extra: branch=default]
2393 [ui.note log.description|description:]
2394 [ui.note log.description|no person]
2395
2396
2397 [log.changeset changeset.public|changeset: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47]
2398 [log.bisect bisect.bad|bisect: bad]
2399 [log.phase|phase: public]
2400 [log.parent changeset.public|parent: 2:97054abb4ab824450e9164180baf491ae0078465]
2401 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2402 [ui.debug log.manifest|manifest: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc]
2403 [log.user|user: person]
2404 [log.date|date: Fri Jan 16 01:06:40 1970 +0000]
2405 [ui.debug log.files|files: c]
2406 [ui.debug log.extra|extra: branch=default]
2407 [ui.note log.description|description:]
2408 [ui.note log.description|no user, no domain]
2409
2410
2411 [log.changeset changeset.draft|changeset: 4:bbe44766e73d5f11ed2177f1838de10c53ef3e74]
2412 [log.bisect bisect.bad|bisect: bad (implicit)]
2413 [log.branch|branch: foo]
2414 [log.phase|phase: draft]
2415 [log.parent changeset.public|parent: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47]
2416 [log.parent changeset.public|parent: -1:0000000000000000000000000000000000000000]
2417 [ui.debug log.manifest|manifest: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc]
2418 [log.user|user: person]
2419 [log.date|date: Sat Jan 17 04:53:20 1970 +0000]
2420 [ui.debug log.extra|extra: branch=foo]
2421 [ui.note log.description|description:]
2422 [ui.note log.description|new branch]
2423
2424
2425 $ hg --color=debug log -v -T bisect -r 0:4
2426 [log.changeset changeset.public|changeset: 0:1e4e1b8f71e0]
2427 [log.bisect bisect.good|bisect: good (implicit)]
2428 [log.user|user: User Name <user@hostname>]
2429 [log.date|date: Mon Jan 12 13:46:40 1970 +0000]
2430 [ui.note log.files|files: a]
2431 [ui.note log.description|description:]
2432 [ui.note log.description|line 1
2433 line 2]
2434
2435
2436 [log.changeset changeset.public|changeset: 1:b608e9d1a3f0]
2437 [log.bisect bisect.good|bisect: good]
2438 [log.user|user: A. N. Other <other@place>]
2439 [log.date|date: Tue Jan 13 17:33:20 1970 +0000]
2440 [ui.note log.files|files: b]
2441 [ui.note log.description|description:]
2442 [ui.note log.description|other 1
2443 other 2
2444
2445 other 3]
2446
2447
2448 [log.changeset changeset.public|changeset: 2:97054abb4ab8]
2449 [log.bisect bisect.untested|bisect: untested]
2450 [log.user|user: other@place]
2451 [log.date|date: Wed Jan 14 21:20:00 1970 +0000]
2452 [ui.note log.files|files: c]
2453 [ui.note log.description|description:]
2454 [ui.note log.description|no person]
2455
2456
2457 [log.changeset changeset.public|changeset: 3:10e46f2dcbf4]
2458 [log.bisect bisect.bad|bisect: bad]
2459 [log.user|user: person]
2460 [log.date|date: Fri Jan 16 01:06:40 1970 +0000]
2461 [ui.note log.files|files: c]
2462 [ui.note log.description|description:]
2463 [ui.note log.description|no user, no domain]
2464
2465
2466 [log.changeset changeset.draft|changeset: 4:bbe44766e73d]
2467 [log.bisect bisect.bad|bisect: bad (implicit)]
2468 [log.branch|branch: foo]
2469 [log.user|user: person]
2470 [log.date|date: Sat Jan 17 04:53:20 1970 +0000]
2471 [ui.note log.description|description:]
2472 [ui.note log.description|new branch]
2473
2474
2475 $ hg bisect --reset
2156
2476
2157 Error on syntax:
2477 Error on syntax:
2158
2478
General Comments 0
You need to be logged in to leave comments. Login now