tests/test-blackbox.t
changeset 41632 31dfe7026f8d
parent 40992 1de3364320af
child 41633 7b1b0415f8e5
--- 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