diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 21:15:38 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 21:15:38 +0000 |
commit | b6d393707ce18deb4c0873dc6062302315dca9a2 (patch) | |
tree | a97db4364d0c8d331c7a2e472224ecfa33ee6a45 /o3d | |
parent | 4c68ef64b5246de874c28dac745038ec713884c5 (diff) | |
download | chromium_src-b6d393707ce18deb4c0873dc6062302315dca9a2.zip chromium_src-b6d393707ce18deb4c0873dc6062302315dca9a2.tar.gz chromium_src-b6d393707ce18deb4c0873dc6062302315dca9a2.tar.bz2 |
Added presubmit checks to verify that files have the svn:eol-style=LF property.
Use this command to set it:
svn propset svn:eol-style LF <path>
Review URL: http://codereview.chromium.org/384095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d')
-rwxr-xr-x | o3d/PRESUBMIT.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/o3d/PRESUBMIT.py b/o3d/PRESUBMIT.py index d889ca7..c80f02e 100755 --- a/o3d/PRESUBMIT.py +++ b/o3d/PRESUBMIT.py @@ -30,6 +30,11 @@ import os import sys +EXCLUDED_PATHS = ( + r"breakpad[\\\/].*", + r"o3d_assets[\\\/].*", + r"third_party[\\\/].*", +) def FindOnPage(input_api, url, regex): """Given a url, download it and find the part matching a regex. @@ -82,8 +87,21 @@ def CheckTreeIsOpen(input_api, output_api, url, url_text): "The tree status can't be checked.")] +def CheckChangeOnUpload(input_api, output_api): + report = [] + black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDED_PATHS + sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) + report.extend(input_api.canned_checks.CheckChangeSvnEolStyle( + input_api, output_api, sources)) + return report + + def CheckChangeOnCommit(input_api, output_api): report = [] + black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDED_PATHS + sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) + report.extend(input_api.canned_checks.CheckChangeSvnEolStyle( + input_api, output_api, sources)) report.extend(CheckTreeIsOpen( input_api, output_api, 'http://o3d-status.appspot.com/status', |