Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: recipes/chromium.py

Issue 13910005: Add the --nosvn property to the chromium solution. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: updates Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fetch.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # pylint: disable=F0401 5 # pylint: disable=F0401
6 import recipe_util 6 import recipe_util
7 import sys 7 import sys
8 8
9 # pylint: disable=W0232 9 # pylint: disable=W0232
10 class Chromium(recipe_util.Recipe): 10 class Chromium(recipe_util.Recipe):
(...skipping 12 matching lines...) Expand all
23 if props.get('webkit_rev', '') == 'ToT': 23 if props.get('webkit_rev', '') == 'ToT':
24 solution['custom_vars'] = {'webkit_rev': ''} 24 solution['custom_vars'] = {'webkit_rev': ''}
25 spec = { 25 spec = {
26 'solutions': [solution], 26 'solutions': [solution],
27 'svn_url': 'svn://svn.chromium.org/chrome', 27 'svn_url': 'svn://svn.chromium.org/chrome',
28 'svn_branch': 'trunk/src', 28 'svn_branch': 'trunk/src',
29 'svn_ref': 'git-svn', 29 'svn_ref': 'git-svn',
30 } 30 }
31 if props.get('submodule_git_svn_spec'): 31 if props.get('submodule_git_svn_spec'):
32 spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec'] 32 spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec']
33 checkout_type = 'gclient_git_svn'
34 if props.get('nosvn'):
agable 2013/04/11 18:00:18 Due to current options processing (which I'm in th
35 checkout_type = 'gclient_git'
36 spec_type = '%s_spec' % checkout_type
33 return { 37 return {
34 'type': 'gclient_git_svn', 38 'type': checkout_type,
35 'gclient_git_svn_spec': spec 39 spec_type: spec
36 } 40 }
37 41
38 @staticmethod 42 @staticmethod
39 def expected_root(_props): 43 def expected_root(_props):
40 return 'src' 44 return 'src'
41 45
42 46
43 def main(argv=None): 47 def main(argv=None):
44 return Chromium().handle_args(argv) 48 return Chromium().handle_args(argv)
45 49
46 50
47 if __name__ == '__main__': 51 if __name__ == '__main__':
48 sys.exit(main(sys.argv)) 52 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « fetch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698