--- a/tests/test-fix.t Sat Oct 05 11:21:39 2019 -0400
+++ b/tests/test-fix.t Sat Oct 05 07:10:34 2019 -0700
@@ -1341,6 +1341,22 @@
$ cd ..
+Tools can be disabled. Disabled tools do nothing but print a debug message.
+
+ $ hg init disabled
+ $ cd disabled
+
+ $ printf "foo\n" > foo
+ $ hg add -q
+ $ hg fix --debug --working-dir --config "fix.disabled:command=echo fixed" \
+ > --config "fix.disabled:pattern=foo" \
+ > --config "fix.disabled:enabled=false"
+ ignoring disabled fixer tool: disabled
+ $ cat foo
+ foo
+
+ $ cd ..
+
Test that we can configure a fixer to affect all files regardless of the cwd.
The way we invoke matching must not prohibit this.