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 95% |
copy from recipe_modules/bot_update/api.py |
copy to recipe_modules/bot_update_lite/api.py |
index 8b3a35b0b8486556235c5a0834b87291d5329a39..87730e5f61dbe82c1b3ca5d8f993c26b41860635 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 |
@@ -55,7 +55,7 @@ class BotUpdateApi(recipe_api.RecipeApi): |
def ensure_checkout(self, gclient_config=None, suffix=None, |
patch=True, update_presentation=True, |
- force=False, patch_root=None, no_shallow=False, |
+ patch_root=None, no_shallow=False, |
with_branch_heads=False, refs=None, |
patch_oauth2=False, |
output_manifest=True, clobber=False, |
@@ -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,8 +191,6 @@ class BotUpdateApi(recipe_api.RecipeApi): |
if clobber: |
cmd.append('--clobber') |
- if force: |
- cmd.append('--force') |
if no_shallow: |
cmd.append('--no_shallow') |
if output_manifest: |
@@ -211,7 +204,7 @@ class BotUpdateApi(recipe_api.RecipeApi): |
git_mode = self._mastername not in SVN_MASTERS |
first_sln = cfg.solutions[0].name |
step_test_data = lambda: self.test_api.output_json( |
- master, builder, slave, root, first_sln, rev_map, git_mode, force, |
+ master, builder, slave, root, first_sln, rev_map, git_mode, |
self._fail_patch, |
output_manifest=output_manifest, fixed_revisions=fixed_revisions) |