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

Unified Diff: recipe_modules/git/example.py

Issue 2173823002: git recipe_module: add experimental git-cache support. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: improved Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/git/api.py ('k') | recipe_modules/git/example.expected/git-cache-checkout.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/git/example.py
diff --git a/recipe_modules/git/example.py b/recipe_modules/git/example.py
index 066785a2a3c00cc8dff2a4f69912cd24346f0d62..484b7385b996c351240d68eab193e2dfce292e68 100644
--- a/recipe_modules/git/example.py
+++ b/recipe_modules/git/example.py
@@ -36,7 +36,8 @@ def RunSteps(api):
remote_name=api.properties.get('remote_name'),
display_fetch_size=api.properties.get('display_fetch_size'),
file_name=api.properties.get('checkout_file_name'),
- submodule_update_recursive=submodule_update_recursive)
+ submodule_update_recursive=submodule_update_recursive,
+ use_git_cache=api.properties.get('use_git_cache'))
assert retVal == "deadbeef", (
"expected retVal to be %r but was %r" % ("deadbeef", retVal))
@@ -145,3 +146,7 @@ def GenTests(api):
api.step_data('git cat-file abcdef12345:TestFile',
stdout=api.raw_io.output('TestOutput')) +
api.properties(revision='abcdef12345', cat_file='TestFile'))
+
+ yield (
+ api.test('git-cache-checkout') +
+ api.properties(use_git_cache=True))
« no previous file with comments | « recipe_modules/git/api.py ('k') | recipe_modules/git/example.expected/git-cache-checkout.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698