OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 json | 5 import json |
6 import sys | 6 import sys |
7 | 7 |
8 import recipe_util # pylint: disable=F0401 | 8 import recipe_util # pylint: disable=F0401 |
9 | 9 |
10 | 10 |
11 # This class doesn't need an __init__ method, so we disable the warning | 11 # This class doesn't need an __init__ method, so we disable the warning |
12 # pylint: disable=W0232 | 12 # pylint: disable=W0232 |
13 class Blink(recipe_util.Recipe): | 13 class Blink(recipe_util.Recipe): |
14 """Basic Recipe alias for Blink -> Chromium.""" | 14 """Basic Recipe alias for Blink -> Chromium.""" |
15 | 15 |
16 @staticmethod | 16 @staticmethod |
17 def fetch_spec(props): | 17 def fetch_spec(props): |
18 submodule_spec = { | 18 submodule_spec = { |
19 'third_party/WebKit': { | 19 'third_party/WebKit': { |
20 'svn_url': 'svn://svn.chromium.org/blink/trunk', | 20 'auto': True, |
Michael Achenbach
2014/10/22 09:46:28
So, auto-svn has a mapping from git to svn urls?
agable
2014/10/22 10:03:33
auto-svn determines the mapping directly from the
| |
21 'svn_branch': 'trunk', | |
22 'svn_ref': 'master', | |
23 } | 21 } |
24 } | 22 } |
25 return { | 23 return { |
26 'alias': { | 24 'alias': { |
27 'recipe': 'chromium', | 25 'recipe': 'chromium', |
28 'props': [ | 26 'props': [ |
29 '--webkit_revision=ToT', | 27 '--webkit_revision=ToT', |
30 '--submodule_git_svn_spec=' + json.dumps(submodule_spec), | 28 '--submodule_git_svn_spec=' + json.dumps(submodule_spec), |
31 ], | 29 ], |
32 }, | 30 }, |
33 } | 31 } |
34 | 32 |
35 | 33 |
36 def main(argv=None): | 34 def main(argv=None): |
37 return Blink().handle_args(argv) | 35 return Blink().handle_args(argv) |
38 | 36 |
39 | 37 |
40 if __name__ == '__main__': | 38 if __name__ == '__main__': |
41 sys.exit(main(sys.argv)) | 39 sys.exit(main(sys.argv)) |
OLD | NEW |