| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import sys | 5 import sys |
| 6 | 6 |
| 7 import recipe_util # pylint: disable=F0401 | 7 import recipe_util # pylint: disable=F0401 |
| 8 | 8 |
| 9 | 9 |
| 10 # This class doesn't need an __init__ method, so we disable the warning | 10 # This class doesn't need an __init__ method, so we disable the warning |
| 11 # pylint: disable=W0232 | 11 # pylint: disable=W0232 |
| 12 class V8(recipe_util.Recipe): | 12 class V8(recipe_util.Recipe): |
| 13 """Basic Recipe class for V8.""" | 13 """Basic Recipe class for V8.""" |
| 14 | 14 |
| 15 @staticmethod | 15 @staticmethod |
| 16 def fetch_spec(props): | 16 def fetch_spec(props): |
| 17 ref = 'branch-heads/bleeding_edge' | 17 ref = 'bleeding_edge' |
| 18 url = 'https://chromium.googlesource.com/external/v8.git@%s' % ref | 18 url = 'https://chromium.googlesource.com/external/v8.git@%s' % ref |
| 19 solution = { 'name' :'v8', | 19 solution = { 'name' :'v8', |
| 20 'url' : url, | 20 'url' : url, |
| 21 'deps_file': '.DEPS.git', | 21 'deps_file': '.DEPS.git', |
| 22 'managed' : False, | 22 'managed' : False, |
| 23 'custom_deps': {}, | 23 'custom_deps': {}, |
| 24 'safesync_url': '', | 24 'safesync_url': '', |
| 25 } | 25 } |
| 26 spec = { | 26 spec = { |
| 27 'solutions': [solution], | 27 'solutions': [solution], |
| 28 'svn_url': 'https://v8.googlecode.com/svn', | 28 'svn_url': 'https://v8.googlecode.com/svn', |
| 29 'svn_branch': 'branches/bleeding_edge', | 29 'svn_branch': 'branches/bleeding_edge', |
| 30 'svn_ref': 'bleeding_edge', | 30 'svn_ref': 'bleeding_edge', |
| 31 'svn_prefix': 'branch-heads/', | |
| 32 'with_branch_heads': True, | |
| 33 } | 31 } |
| 34 checkout_type = 'gclient_git_svn' | 32 checkout_type = 'gclient_git_svn' |
| 35 if props.get('nosvn'): | 33 if props.get('nosvn'): |
| 36 checkout_type = 'gclient_git' | 34 checkout_type = 'gclient_git' |
| 37 spec_type = '%s_spec' % checkout_type | 35 spec_type = '%s_spec' % checkout_type |
| 38 return { | 36 return { |
| 39 'type': checkout_type, | 37 'type': checkout_type, |
| 40 spec_type: spec, | 38 spec_type: spec, |
| 41 } | 39 } |
| 42 | 40 |
| 43 @staticmethod | 41 @staticmethod |
| 44 def expected_root(_props): | 42 def expected_root(_props): |
| 45 return 'v8' | 43 return 'v8' |
| 46 | 44 |
| 47 | 45 |
| 48 def main(argv=None): | 46 def main(argv=None): |
| 49 return V8().handle_args(argv) | 47 return V8().handle_args(argv) |
| 50 | 48 |
| 51 | 49 |
| 52 if __name__ == '__main__': | 50 if __name__ == '__main__': |
| 53 sys.exit(main(sys.argv)) | 51 sys.exit(main(sys.argv)) |
| OLD | NEW |