Commit 88be9a1c authored by szager@chromium.org's avatar szager@chromium.org

Use gclient's git_cache setting in bot_update/api.py

BUG=589140
R=agable@chromium.org

Review URL: https://codereview.chromium.org/1762513002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299120 0039d316-1c4b-4281-b951-d872f2087c98
parent 10625006
...@@ -143,7 +143,7 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -143,7 +143,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
['--spec', spec_string], ['--spec', spec_string],
['--root', root], ['--root', root],
['--revision_mapping_file', self.m.json.input(rev_map)], ['--revision_mapping_file', self.m.json.input(rev_map)],
['--git-cache-dir', self.m.path['git_cache']], ['--git-cache-dir', cfg.cache_dir],
# 3. How to find the patch, if any (issue/patchset/patch_url). # 3. How to find the patch, if any (issue/patchset/patch_url).
['--issue', issue], ['--issue', issue],
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-m1", "totallyaslave-m1",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-m1", "totallyaslave-m1",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-m1", "totallyaslave-m1",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"somehost", "somehost",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src", "src",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"--slave", "--slave",
"totallyaslave-c4", "totallyaslave-c4",
"--spec", "--spec",
"cache_dir = None\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]", "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
"--root", "--root",
"src/v8", "src/v8",
"--revision_mapping_file", "--revision_mapping_file",
......
...@@ -12,7 +12,7 @@ DEPS = [ ...@@ -12,7 +12,7 @@ DEPS = [
def RunSteps(api): def RunSteps(api):
api.gclient.use_mirror = True api.gclient.use_mirror = True
src_cfg = api.gclient.make_config() src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[GIT_CACHE]')
soln = src_cfg.solutions.add() soln = src_cfg.solutions.add()
soln.name = 'src' soln.name = 'src'
soln.url = 'svn://svn.chromium.org/chrome/trunk/src' soln.url = 'svn://svn.chromium.org/chrome/trunk/src'
......
...@@ -58,7 +58,7 @@ def RunSteps(api): ...@@ -58,7 +58,7 @@ def RunSteps(api):
for config_name in TEST_CONFIGS: for config_name in TEST_CONFIGS:
api.gclient.make_config(config_name) api.gclient.make_config(config_name)
src_cfg = api.gclient.make_config(GIT_MODE=True) src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[ROOT]/git_cache')
soln = src_cfg.solutions.add() soln = src_cfg.solutions.add()
soln.name = 'src' soln.name = 'src'
soln.url = 'https://chromium.googlesource.com/chromium/src.git' soln.url = 'https://chromium.googlesource.com/chromium/src.git'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment