##// END OF EJS Templates
fix: warn when a fixer doesn't have a configured command...
Martin von Zweigbergk -
r43494:d3d1a3af default
parent child Browse files
Show More
@@ -800,7 +800,11 b' def getfixers(ui):'
800 800 # dangerous to let it affect all files. It would be pointless to let it
801 801 # affect no files. There is no reasonable subset of files to use as the
802 802 # default.
803 if pattern is None:
803 if command is None:
804 ui.warn(
805 _(b'fixer tool has no command configuration: %s\n') % (name,)
806 )
807 elif pattern is None:
804 808 ui.warn(
805 809 _(b'fixer tool has no pattern configuration: %s\n') % (name,)
806 810 )
@@ -1338,6 +1338,8 b' pattern config is missing, and that we o'
1338 1338 fixer tool has no pattern configuration: nopattern
1339 1339 $ cat foo bar
1340 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 1344 $ cd ..
1343 1345
General Comments 0
You need to be logged in to leave comments. Login now