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