Change presubmit script to not allow uploads at all
Direct people to github
TBR=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//1130053006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@45833 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/dart/PRESUBMIT.py b/dart/PRESUBMIT.py
index f850b03..5db7d6b 100644
--- a/dart/PRESUBMIT.py
+++ b/dart/PRESUBMIT.py
@@ -8,11 +8,15 @@
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)]
+