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

Unified Diff: recipe_modules/bot_update_lite/api.py

Issue 1954833002: Add bot_update_lite into recipes (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Remove extra file Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/bot_update_lite/__init__.py ('k') | recipe_modules/bot_update_lite/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/bot_update_lite/api.py
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update_lite/api.py
similarity index 96%
copy from recipe_modules/bot_update/api.py
copy to recipe_modules/bot_update_lite/api.py
index 8b3a35b0b8486556235c5a0834b87291d5329a39..910287c0952e127173c2e15df4c8c179bc1e5e3d 100644
--- a/recipe_modules/bot_update/api.py
+++ b/recipe_modules/bot_update_lite/api.py
@@ -20,7 +20,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
def __init__(self, mastername, buildername, slavename, issue, patchset,
patch_url, repository, gerrit_ref, rietveld, revision,
parent_got_revision, deps_revision_overrides, fail_patch,
- *args, **kwargs):
+ lite, *args, **kwargs):
self._mastername = mastername
self._buildername = buildername
self._slavename = slavename
@@ -135,18 +135,13 @@ class BotUpdateApi(recipe_api.RecipeApi):
rev_map = cfg.got_revision_mapping.as_jsonish()
flags = [
- # 1. Do we want to run? (master/builder/slave).
- ['--master', master],
- ['--builder', builder],
- ['--slave', slave],
-
- # 2. What do we want to check out (spec/root/rev/rev_map).
+ # 1. What do we want to check out (spec/root/rev/rev_map).
['--spec', self.m.gclient.config_to_pythonish(cfg)],
['--root', root],
['--revision_mapping_file', self.m.json.input(rev_map)],
['--git-cache-dir', cfg.cache_dir],
- # 3. How to find the patch, if any (issue/patchset/patch_url).
+ # 2. How to find the patch, if any (issue/patchset/patch_url).
['--issue', issue],
['--patchset', patchset],
['--patch_url', patch_url],
@@ -156,7 +151,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
['--apply_issue_email_file', email_file],
['--apply_issue_key_file', key_file],
- # 4. Hookups to JSON output back into recipes.
+ # 3. Hookups to JSON output back into recipes.
['--output_json', self.m.json.output()],]
@@ -196,7 +191,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
if clobber:
cmd.append('--clobber')
- if force:
+ if force and not self._lite:
nodir 2016/05/27 21:09:18 let's remove force and lite properties
hinoka 2016/05/27 21:13:43 Done. Good catch
cmd.append('--force')
if no_shallow:
cmd.append('--no_shallow')
« no previous file with comments | « recipe_modules/bot_update_lite/__init__.py ('k') | recipe_modules/bot_update_lite/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698