| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index f850b03948c9b2e1a03a9960ef8f54a3bc2d9cb2..5db7d6bc5f324132d701659ceb8ae621c68dace0 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -8,11 +8,15 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
|
| for more details about the presubmit API built into gcl.
|
| """
|
|
|
| +MOVED_TO_GITHUB = ("The dart svn repo is no more, and is only here for a "
|
| + "grace period until dependent projects have moved off. The new repo "
|
| + "is located at https://github.com/dart-lang/sdk, alongside the rest "
|
| + "of the dart-lang repos. Commits to this repo will have no effect "
|
| + "and you should not do it.")
|
| +
|
| def CheckChangeOnCommit(input_api, output_api):
|
| - results = []
|
| - status_check = input_api.canned_checks.CheckTreeIsOpen(
|
| - input_api,
|
| - output_api,
|
| - json_url='http://dart-status.appspot.com/current?format=json')
|
| - results.extend(status_check)
|
| - return results
|
| + return [output_api.PresubmitError(MOVED_TO_GITHUB)]
|
| +
|
| +def CheckChangeOnUpload(input_api, output_api):
|
| + return [output_api.PresubmitError(MOVED_TO_GITHUB)]
|
| +
|
|
|