comparison tests/test-fix.t @ 43220:d3d1a3afe7aa

fix: warn when a fixer doesn't have a configured command It seems we currently produce an empty command line and then decide to not run it, but it seems better to skip that part too. Differential Revision: https://phab.mercurial-scm.org/D7085
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 26 Jul 2019 08:43:57 -0700
parents 808a57a08470
children 5272bd7e7517
comparison
equal deleted inserted replaced
43219:0101db49606f 43220:d3d1a3afe7aa
1336 $ hg add -q 1336 $ hg add -q
1337 $ hg fix --debug --working-dir --config "fix.nopattern:command=echo fixed" 1337 $ hg fix --debug --working-dir --config "fix.nopattern:command=echo fixed"
1338 fixer tool has no pattern configuration: nopattern 1338 fixer tool has no pattern configuration: nopattern
1339 $ cat foo bar 1339 $ cat foo bar
1340 foobar (no-eol) 1340 foobar (no-eol)
1341 $ hg fix --debug --working-dir --config "fix.nocommand:pattern=foo.bar"
1342 fixer tool has no command configuration: nocommand
1341 1343
1342 $ cd .. 1344 $ cd ..
1343 1345
1344 Tools can be disabled. Disabled tools do nothing but print a debug message. 1346 Tools can be disabled. Disabled tools do nothing but print a debug message.
1345 1347