diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 14:25:54 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 14:25:54 +0000 |
commit | fe5f57c5cd60ab11df4f75060eab05d677131be8 (patch) | |
tree | 0b515275dd587f76f52e16e7fe14506d45698455 /PRESUBMIT.py | |
parent | b5eb6d85a1adfbcb49aed9a77e18dc5c8378f2de (diff) | |
download | chromium_src-fe5f57c5cd60ab11df4f75060eab05d677131be8.zip chromium_src-fe5f57c5cd60ab11df4f75060eab05d677131be8.tar.gz chromium_src-fe5f57c5cd60ab11df4f75060eab05d677131be8.tar.bz2 |
Add the tree check there instead of implementing it in the root PRESUBMIT.py.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/119201
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-x | PRESUBMIT.py | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index f4f69db..40be7b7 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -40,18 +40,30 @@ def ReadFile(path): def CheckChangeOnUpload(input_api, output_api): # TODO(maruel): max_cols is temporarily disabled. Reenable once the source # tree is in better shape. - return (LocalChecks(input_api, output_api, max_cols=0) + - input_api.canned_checks.CheckChangeHasBugField(input_api, output_api) + - input_api.canned_checks.CheckChangeHasTestField(input_api, output_api)) + results = [] + results.extend(LocalChecks(input_api, output_api, max_cols=0)) + results.extend(input_api.canned_checks.CheckChangeHasBugField(input_api, + output_api)) + results.extend(input_api.canned_checks.CheckChangeHasTestField(input_api, + output_api)) + return results def CheckChangeOnCommit(input_api, output_api): + results = [] # TODO(maruel): max_cols is temporarily disabled. Reenable once the source # tree is in better shape. - return (LocalChecks(input_api, output_api, max_cols=0) + - input_api.canned_checks.CheckDoNotSubmit(input_api, output_api) + - input_api.canned_checks.CheckChangeHasBugField(input_api, output_api) + - input_api.canned_checks.CheckChangeHasTestField(input_api, output_api)) + results.extend(LocalChecks(input_api, output_api, max_cols=0)) + results.extend(input_api.canned_checks.CheckChangeHasBugField(input_api, + output_api)) + results.extend(input_api.canned_checks.CheckChangeHasTestField(input_api, + output_api)) + # Make sure the tree is 'open'. + results.extend(input_api.canned_checks.CheckTreeIsOpen( + input_api, output_api, + 'http://chromium-status.appspot.com/status', '0' + )) + return results def LocalChecks(input_api, output_api, max_cols=80): |