OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 """Top-level presubmit script for Dart. | 5 """Top-level presubmit script for Dart. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
| 11 MOVED_TO_GITHUB = ("The dart svn repo is no more, and is only here for a " |
| 12 "grace period until dependent projects have moved off. The new repo " |
| 13 "is located at https://github.com/dart-lang/sdk, alongside the rest " |
| 14 "of the dart-lang repos. Commits to this repo will have no effect " |
| 15 "and you should not do it.") |
| 16 |
11 def CheckChangeOnCommit(input_api, output_api): | 17 def CheckChangeOnCommit(input_api, output_api): |
12 results = [] | 18 return [output_api.PresubmitError(MOVED_TO_GITHUB)] |
13 status_check = input_api.canned_checks.CheckTreeIsOpen( | 19 |
14 input_api, | 20 def CheckChangeOnUpload(input_api, output_api): |
15 output_api, | 21 return [output_api.PresubmitError(MOVED_TO_GITHUB)] |
16 json_url='http://dart-status.appspot.com/current?format=json') | 22 |
17 results.extend(status_check) | |
18 return results | |
OLD | NEW |