Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Unified Diff: presubmit_canned_checks.py

Issue 6591064: add source_file_filter to CheckOwners() presubmit check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_canned_checks.py
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index 0d9d572476bc6937382e047ccdb3426a71fdbdce..20b9393217c35f0023d77cd648adcf834932794f 100644
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -626,8 +626,8 @@ def CheckBuildbotPendingBuilds(input_api, output_api, url, max_pendings,
return []
-def CheckOwners(input_api, output_api):
- affected_files = set(input_api.change.AffectedFiles())
+def CheckOwners(input_api, output_api, source_file_filter=None):
+ affected_files = set(input_api.change.AffectedFiles(source_file_filter))
owners_db = input_api.owners_db
if input_api.is_commiting:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698