Index: presubmit_canned_checks.py |
=================================================================== |
--- presubmit_canned_checks.py (revision 84701) |
+++ presubmit_canned_checks.py (working copy) |
@@ -153,7 +153,7 @@ |
modified_files = [f for f in all_modified_files if f not in current_cl_files] |
modified_abspaths = [input_api.os_path.abspath(f) for f in modified_files] |
- for f in input_api.AffectedFiles(source_file_filter): |
+ for f in input_api.AffectedFiles(file_filter=source_file_filter): |
if f.Action() == 'M' and f.IsDirectory(): |
curpath = f.AbsoluteLocalPath() |
bad_files = [] |
@@ -236,7 +236,8 @@ |
A list of the newly-introduced violations reported by the rule. |
""" |
errors = [] |
- for f in input_api.AffectedFiles(source_file_filter, include_deletes=False): |
+ for f in input_api.AffectedFiles(include_deletes=False, |
+ file_filter=source_file_filter): |
# For speed, we do two passes, checking first the full file. Shelling out |
# to the SCM to determine the changed region can be quite expensive on |
# Win32. Assuming that most files will be kept problem-free, we can |
@@ -733,7 +734,7 @@ |
"we can't check it for approvals.")] |
affected_files = set([f.LocalPath() for f in |
- input_api.change.AffectedFiles(source_file_filter)]) |
+ input_api.change.AffectedFiles(file_filter=source_file_filter)]) |
owners_db = input_api.owners_db |
owner_email, approvers = _RietveldOwnerAndApprovers(input_api, |