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

Unified Diff: gclient_scm.py

Issue 225743005: Add recipe for v8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: updates Created 6 years, 7 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 | « fetch.py ('k') | recipes/v8.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index e17702c5475c36114e783381c6d1be550187a02d..b0ca58281781b1bfa08a7c8ac31a1e036b438e43 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -358,6 +358,10 @@ class GitWrapper(SCMWrapper):
self._DeleteOrMove(options.force)
self._Clone(revision, url, options)
self._UpdateBranchHeads(options, fetch=True)
+ if deps_revision and deps_revision.startswith('branch-heads/'):
+ deps_branch = deps_revision.replace('branch-heads/', '')
+ self._Capture(['branch', deps_branch, deps_revision])
+ self._Capture(['checkout', '--quiet', deps_branch])
if file_list is not None:
files = self._Capture(['ls-files']).splitlines()
file_list.extend([os.path.join(self.checkout_path, f) for f in files])
« no previous file with comments | « fetch.py ('k') | recipes/v8.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698