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

Unified Diff: tools/auto_bisect/bisect_utils.py

Issue 792183003: Make changes to support bisect for android-chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 874dbcbfa3f03a276341efe5fafc3690461d24ac..5f80d4543c3e1ab4d5481f9953a28fd342bccdcf 100644
--- a/tools/auto_bisect/bisect_utils.py
+++ b/tools/auto_bisect/bisect_utils.py
@@ -333,17 +333,20 @@ def _CleanupPreviousGitRuns(cwd=os.getcwd()):
os.remove(path_to_file)
-def RunGClientAndSync(cwd=None):
+def RunGClientAndSync(revision=None, cwd=None):
"""Runs gclient and does a normal sync.
Args:
+ revision: Revision that need to be synced.
cwd: Working directory to run from.
Returns:
The return code of the call.
"""
- params = ['sync', '--verbose', '--nohooks', '--reset', '--force',
+ params = ['sync', '--verbose', '--nohooks', '--force',
'--delete_unversioned_trees']
+ if revision:
+ 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