| Index: presubmit_canned_checks.py
|
| diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
|
| index f31b1687a352e306dd1bd415d31e702a44c416e2..18e700698bd92c7f4427314d27fe67f859cfa74d 100755
|
| --- a/presubmit_canned_checks.py
|
| +++ b/presubmit_canned_checks.py
|
| @@ -119,6 +119,16 @@ def CheckLongLines(input_api, output_api, maxlen=80, source_file_filter=None):
|
| return []
|
|
|
|
|
| +def CheckChangeSvnEolStyle(input_api, output_api, source_file_filter):
|
| + """Checks that the source files have svn:eol-style=LF."""
|
| + bad = filter(lambda f: f.scm == 'svn' and f.Property('svn:eol-style') != 'LF',
|
| + input_api.AffectedSourceFiles(source_file_filter))
|
| + if bad:
|
| + return [output_api.PresubmitError(
|
| + "Fix these files with svn svn:eol-style=LF", items=bad)]
|
| + return []
|
| +
|
| +
|
| ### Other checks
|
|
|
| def CheckDoNotSubmit(input_api, output_api):
|
|
|