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

Unified Diff: tools/auto_bisect/bisect_utils.py

Issue 800143003: Sync android-chrome revision along with chromium on android-chrome platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « tools/auto_bisect/bisect_perf_regression_test.py ('k') | tools/auto_bisect/source_control.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/auto_bisect/bisect_utils.py
diff --git a/tools/auto_bisect/bisect_utils.py b/tools/auto_bisect/bisect_utils.py
index e63b9a56b1e477c3cec378aa47e41111a77f2fb5..95ca455c00737f1ca56c37016ed26d85daa70995 100644
--- a/tools/auto_bisect/bisect_utils.py
+++ b/tools/auto_bisect/bisect_utils.py
@@ -352,11 +352,12 @@ def _CleanupPreviousGitRuns(cwd=os.getcwd()):
os.remove(path_to_file)
-def RunGClientAndSync(revision=None, cwd=None):
+def RunGClientAndSync(revisions=None, cwd=None):
"""Runs gclient and does a normal sync.
Args:
- revision: Revision that need to be synced.
+ revisions: List of revisions that need to be synced.
+ E.g., "src@2ae43f...", "src/third_party/webkit@asr1234" etc.
cwd: Working directory to run from.
Returns:
@@ -364,8 +365,9 @@ def RunGClientAndSync(revision=None, cwd=None):
"""
params = ['sync', '--verbose', '--nohooks', '--force',
'--delete_unversioned_trees']
- if revision:
- params.extend(['--revision', revision])
+ if revisions is not None:
+ for revision in revisions:
+ params.extend(['--revision', revision])
return RunGClient(params, cwd=cwd)
« no previous file with comments | « tools/auto_bisect/bisect_perf_regression_test.py ('k') | tools/auto_bisect/source_control.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698