Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 1c161cb25e831b87744cbeef49fe79283e5303e0..8321f5cedfd67e9151c8b022025a032403f7552e 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -67,7 +67,7 @@ def _V8PresubmitChecks(input_api, output_api): |
input_api.PresubmitLocalPath(), 'tools')) |
from presubmit import CppLintProcessor |
from presubmit import SourceProcessor |
- from presubmit import CheckStatusFiles |
+ from presubmit import StatusFilesProcessor |
results = [] |
if not CppLintProcessor().RunOnFiles( |
@@ -78,7 +78,8 @@ def _V8PresubmitChecks(input_api, output_api): |
results.append(output_api.PresubmitError( |
"Copyright header, trailing whitespaces and two empty lines " \ |
"between declarations check failed")) |
- if not CheckStatusFiles(input_api.PresubmitLocalPath()): |
+ if not StatusFilesProcessor().RunOnFiles( |
+ input_api.AffectedFiles(include_deletes=False)): |
results.append(output_api.PresubmitError("Status file check failed")) |
results.extend(input_api.canned_checks.CheckAuthorizedAuthor( |
input_api, output_api)) |