| OLD | NEW |
| 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 recipe_engine.config import config_item_context, ConfigGroup, BadConf |
| 8 from slave.recipe_config import ConfigList, Dict, Single, Static, Set, List | 8 from recipe_engine.config import ConfigList, Dict, Single, Static, Set, List |
| 9 | 9 |
| 10 from . 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( |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 'buildspec/build/') | 501 'buildspec/build/') |
| 502 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' | 502 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' |
| 503 soln.custom_deps = {} | 503 soln.custom_deps = {} |
| 504 | 504 |
| 505 @config_ctx() | 505 @config_ctx() |
| 506 def catapult(c): | 506 def catapult(c): |
| 507 soln = c.solutions.add() | 507 soln = c.solutions.add() |
| 508 soln.name = 'catapult' | 508 soln.name = 'catapult' |
| 509 soln.url = ('https://chromium.googlesource.com/external/github.com/' | 509 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
| 510 'catapult-project/catapult.git') | 510 'catapult-project/catapult.git') |
| OLD | NEW |