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) |