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

Unified Diff: fetch.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 | « no previous file | gclient_scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fetch.py
diff --git a/fetch.py b/fetch.py
index 5d595f45aac6711407c7fc4250f303d8f0917dd7..d3bcacd793195438a658cee1e03c7e83fbc70f93 100755
--- a/fetch.py
+++ b/fetch.py
@@ -111,10 +111,12 @@ class GclientGitCheckout(GclientCheckout, GitCheckout):
def init(self):
# Configure and do the gclient checkout.
self.run_gclient('config', '--spec', self.spec['gclient_spec'])
+ sync_cmd = ['sync']
if self.options.nohooks:
- self.run_gclient('sync', '--nohooks')
- else:
- self.run_gclient('sync')
+ sync_cmd.append('--nohooks')
+ if self.spec.get('with_branch_heads', False):
+ sync_cmd.append('--with_branch_heads')
+ self.run_gclient(*sync_cmd)
# Configure git.
wd = os.path.join(self.base, self.root)
@@ -159,10 +161,11 @@ class GclientGitSvnCheckout(GclientGitCheckout, SvnCheckout):
wd = os.path.join(self.base, real_path)
if self.options.dry_run:
print 'cd %s' % wd
- self.run_git('svn', 'init', '--prefix=origin/', '-T',
+ prefix = svn_spec.get('svn_prefix', 'origin/')
+ self.run_git('svn', 'init', '--prefix=' + prefix, '-T',
svn_spec['svn_branch'], svn_spec['svn_url'], cwd=wd)
self.run_git('config', '--replace', 'svn-remote.svn.fetch',
- svn_spec['svn_branch'] + ':refs/remotes/origin/' +
+ svn_spec['svn_branch'] + ':refs/remotes/' + prefix +
svn_spec['svn_ref'], cwd=wd)
self.run_git('svn', 'fetch', cwd=wd)
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698