diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:04:56 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:04:56 +0000 |
commit | 917f58b57be703febf37d09be8a388cbc12f2747 (patch) | |
tree | a1848ec7ada1009d64f41f70f16f22987ad7a52e /PRESUBMIT.py | |
parent | a79cd3fb99ff28b50b376cf6ef2c1e5efe6c100b (diff) | |
download | chromium_src-917f58b57be703febf37d09be8a388cbc12f2747.zip chromium_src-917f58b57be703febf37d09be8a388cbc12f2747.tar.gz chromium_src-917f58b57be703febf37d09be8a388cbc12f2747.tar.bz2 |
Revert "Revert "Add presubmit checks to look for BUG= and TEST= tags in change list description.""
This reverts commit fb3644d302ea26efbe2a2e761beea2d3f26bac59.
Review URL: http://codereview.chromium.org/115577
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-x | PRESUBMIT.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index d73d566..c2f0b77 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -40,14 +40,18 @@ 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) + 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)) def CheckChangeOnCommit(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.CheckDoNotSubmit(input_api, output_api)) + 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)) def LocalChecks(input_api, output_api, max_cols=80): |