Mercurial > hg
changeset 41632:31dfe7026f8d
blackbox: test that unsetting track disables blackbox logging
Differential Revision: https://phab.mercurial-scm.org/D5783
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 31 Jan 2019 11:55:02 -0800 |
parents | 3d9d5e612e67 |
children | 7b1b0415f8e5 |
files | tests/test-blackbox.t |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-blackbox.t Thu Feb 07 10:20:57 2019 -0800 +++ b/tests/test-blackbox.t Thu Jan 31 11:55:02 2019 -0800 @@ -354,6 +354,17 @@ warning: cannot write to blackbox.log: $TESTTMP/gone/.hg/blackbox.log: $ENOTDIR$ (windows !) $ cd .. +blackbox should disable itself if track is empty + + $ hg --config blackbox.track= init nothing_tracked + $ cd nothing_tracked + $ cat >> .hg/hgrc << EOF + > [blackbox] + > track = + > EOF + $ hg blackbox + $ cd $TESTTMP + #if chg when using chg, blackbox.log should get rotated correctly