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

Unified Diff: scripts/slave/recipe_modules/chromite/api.py

Issue 2435923002: Add force_sync option to chromite.checkout. (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromite/api.py
diff --git a/scripts/slave/recipe_modules/chromite/api.py b/scripts/slave/recipe_modules/chromite/api.py
index 91abefab85b2146ed1f3b12624733f027b7c2729..0d6030005ac3fa39735241f2bcd53ae3f6ca61b3 100644
--- a/scripts/slave/recipe_modules/chromite/api.py
+++ b/scripts/slave/recipe_modules/chromite/api.py
@@ -203,12 +203,15 @@ class ChromiteApi(recipe_api.RecipeApi):
soln.revision = '%s:' % (self.c.chromite_branch,)
return cfg
- def checkout(self, manifest_url=None, repo_url=None):
+ def checkout(self, manifest_url=None, repo_url=None, force_sync=False):
manifest_url = manifest_url or self.manifest_url
repo_url = repo_url or self.repo_url
self.m.repo.init(manifest_url, '--repo-url', repo_url)
- self.m.repo.sync()
+ args = []
+ if force_sync:
+ args.append('--force-sync')
+ self.m.repo.sync(*args)
@property
def using_old_chromite_layout(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698