Show More
@@ -365,6 +365,24 b' blackbox should disable itself if track ' | |||||
365 | $ hg blackbox |
|
365 | $ hg blackbox | |
366 | $ cd $TESTTMP |
|
366 | $ cd $TESTTMP | |
367 |
|
367 | |||
|
368 | a '*' entry in blackbox.track is interpreted as log everything | |||
|
369 | ||||
|
370 | $ hg --config blackbox.track='*' \ | |||
|
371 | > --config blackbox.logsource=True \ | |||
|
372 | > init track_star | |||
|
373 | $ cd track_star | |||
|
374 | $ cat >> .hg/hgrc << EOF | |||
|
375 | > [blackbox] | |||
|
376 | > logsource = True | |||
|
377 | > track = * | |||
|
378 | > EOF | |||
|
379 | (only look for entries with specific logged sources, otherwise this test is | |||
|
380 | pretty brittle) | |||
|
381 | $ hg blackbox | egrep '\[command(finish)?\]' | |||
|
382 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000) [commandfinish]> --config 'blackbox.track=*' --config 'blackbox.logsource=True' init track_star exited 0 after * seconds (glob) | |||
|
383 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000) [command]> blackbox | |||
|
384 | $ cd $TESTTMP | |||
|
385 | ||||
368 | #if chg |
|
386 | #if chg | |
369 |
|
387 | |||
370 | when using chg, blackbox.log should get rotated correctly |
|
388 | when using chg, blackbox.log should get rotated correctly |
General Comments 0
You need to be logged in to leave comments.
Login now