| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Documentation on PRESUBMIT.py can be found at: | 5 # Documentation on PRESUBMIT.py can be found at: |
| 6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts | 6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 7 | 7 |
| 8 | 8 |
| 9 def CheckChangeOnUpload(input_api, output_api): | 9 def CheckChangeOnUpload(input_api, output_api): |
| 10 report = [] | 10 report = [] |
| 11 affected_files = input_api.AffectedFiles(include_deletes=False) | 11 affected_files = input_api.AffectedFiles(include_deletes=False) |
| 12 report.extend(input_api.canned_checks.PanProjectChecks( | 12 report.extend(input_api.canned_checks.PanProjectChecks( |
| 13 input_api, output_api)) | 13 input_api, output_api)) |
| 14 return report | 14 return report |
| 15 | 15 |
| 16 | 16 |
| 17 def CheckChangeOnCommit(input_api, output_api): | 17 def CheckChangeOnCommit(input_api, output_api): |
| 18 report = [] | 18 report = [] |
| 19 report.extend(CheckChangeOnUpload(input_api, output_api)) |
| 19 | 20 |
| 20 # Disable presubmit until we fix tree status | 21 # Disable presubmit until we fix tree status |
| 21 | |
| 22 # report.extend(CheckChangeOnUpload(input_api, output_api)) | |
| 23 # report.extend(input_api.canned_checks.CheckTreeIsOpen( | 22 # report.extend(input_api.canned_checks.CheckTreeIsOpen( |
| 24 # input_api, output_api, | 23 # input_api, output_api, |
| 25 # json_url='http://naclsdk-status.appspot.com/current?format=json')) | 24 # json_url='http://naclsdk-status.appspot.com/current?format=json')) |
| 26 return report | 25 return report |
| OLD | NEW |