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

Side by Side Diff: scripts/slave/recipe_modules/gclient/config.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 types 5 import types
6 6
7 from slave.recipe_config import config_item_context, ConfigGroup, BadConf 7 from slave.recipe_config import config_item_context, ConfigGroup, BadConf
8 from slave.recipe_config import ConfigList, Dict, Single, Static, Set, List 8 from slave.recipe_config import ConfigList, Dict, Single, Static, Set, List
9 9
10 from RECIPE_MODULES.gclient import api as gclient_api 10 from . import api as gclient_api
11 11
12 12
13 def BaseConfig(USE_MIRROR=True, GIT_MODE=False, CACHE_DIR=None, 13 def BaseConfig(USE_MIRROR=True, GIT_MODE=False, CACHE_DIR=None,
14 PATCH_PROJECT=None, BUILDSPEC_VERSION=None, 14 PATCH_PROJECT=None, BUILDSPEC_VERSION=None,
15 **_kwargs): 15 **_kwargs):
16 deps = '.DEPS.git' if GIT_MODE else 'DEPS' 16 deps = '.DEPS.git' if GIT_MODE else 'DEPS'
17 cache_dir = str(CACHE_DIR) if GIT_MODE and CACHE_DIR else None 17 cache_dir = str(CACHE_DIR) if GIT_MODE and CACHE_DIR else None
18 return ConfigGroup( 18 return ConfigGroup(
19 solutions = ConfigList( 19 solutions = ConfigList(
20 lambda: ConfigGroup( 20 lambda: ConfigGroup(
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 soln.name = 'chrome_from_buildspec' 470 soln.name = 'chrome_from_buildspec'
471 soln.revision = 'HEAD' 471 soln.revision = 'HEAD'
472 # This URL has to be augmented with the appropriate bucket by the recipe using 472 # This URL has to be augmented with the appropriate bucket by the recipe using
473 # it. 473 # it.
474 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/' 474 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/'
475 'buildspec/releases/' + c.BUILDSPEC_VERSION) 475 'buildspec/releases/' + c.BUILDSPEC_VERSION)
476 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' 476 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org'
477 soln.custom_deps = {} 477 soln.custom_deps = {}
478 c.src_root = 'src' 478 c.src_root = 'src'
479 c.got_revision_mapping['chrome_from_buildspec'] = 'got_revision' 479 c.got_revision_mapping['chrome_from_buildspec'] = 'got_revision'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698