D5783: blackbox: test that unsetting track disables blackbox logging

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Sat Feb 9 21:46:20 UTC 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG31dfe7026f8d: blackbox: test that unsetting track disables blackbox logging (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5783?vs=13653&id=13962

REVISION DETAIL
  https://phab.mercurial-scm.org/D5783

AFFECTED FILES
  tests/test-blackbox.t

CHANGE DETAILS

diff --git a/tests/test-blackbox.t b/tests/test-blackbox.t
--- a/tests/test-blackbox.t
+++ b/tests/test-blackbox.t
@@ -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



To: spectral, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list