From 1198db9dd6017a286590ce3a7095b1deda7b94a9 Mon Sep 17 00:00:00 2001 From: "niklase@google.com" Date: Thu, 9 Jun 2011 07:07:24 +0000 Subject: [PATCH] Adding owners check in presubmit script. git-svn-id: http://webrtc.googlecode.com/svn/trunk@62 4adac7df-926f-26a2-2b94-8c16560cd09d --- PRESUBMIT.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index ddb15ceab..d824286e7 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -24,12 +24,13 @@ def CheckChangeOnUpload(input_api, output_api): +def CheckChangeOnCommit (input_api, output_api): + results = [] + results.extend(input_api.canned_checks.CheckOwners(input_api, output_api)) + return results -#def CheckChangeOnCommit (input_api, output_api): -# results = [] -# sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) -# results.extend(input_api.canned_checks.CheckOwners(input_api, output_api, source_file_filter=sources)) -# return results +#sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) +