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

Unified Diff: recipe_modules/bot_update/api.py

Issue 1837453002: Add --gerrit_no_reset for who need to use FETCH_HEAD revision. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: changed flag name Created 4 years, 9 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 | « no previous file | recipe_modules/bot_update/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/bot_update/api.py
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update/api.py
index 2b64807e5ec34f90ddb7da97967f72ae81046834..31a27335c82c2d67528b6906cce51b748dfd6c98 100644
--- a/recipe_modules/bot_update/api.py
+++ b/recipe_modules/bot_update/api.py
@@ -60,7 +60,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
patch_project_roots=None, patch_oauth2=False,
output_manifest=True, clobber=False,
root_solution_revision=None, rietveld=None, issue=None,
- patchset=None, **kwargs):
+ patchset=None, gerrit_no_reset=False, **kwargs):
"""
Args:
gclient_config: The gclient configuration to use when running bot_update.
@@ -200,6 +200,8 @@ class BotUpdateApi(recipe_api.RecipeApi):
cmd.append('--output_manifest')
if with_branch_heads or cfg.with_branch_heads:
cmd.append('--with_branch_heads')
+ if gerrit_no_reset:
+ cmd.append('--gerrit_no_reset')
# Inject Json output for testing.
git_mode = self._mastername not in SVN_MASTERS
« no previous file with comments | « no previous file | recipe_modules/bot_update/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698