Chromium Code Reviews| Index: gclient.py |
| =================================================================== |
| --- gclient.py (revision 107077) |
| +++ gclient.py (working copy) |
| @@ -923,6 +923,13 @@ |
| handle = urllib.urlopen(s.safesync_url) |
| rev = handle.read().strip() |
| handle.close() |
| + if gclient_scm.GetScmName(s.url) == 'git': |
| + scm = gclient_scm.GitWrapper(s.url, s.root.root_dir, s.name) |
| + svn_rev = scm.Sha1FromSvnRevision(rev) |
|
M-A Ruel
2011/10/25 13:11:14
What happens when upstream is git and not git-svn?
|
| + if len(svn_rev): |
| + rev = svn_rev |
| + else: |
| + print '\nWARNING: No git sha1 for revision %s found.' % rev |
| if len(rev): |
| self._options.revisions.append('%s@%s' % (s.name, rev)) |
| if not self._options.revisions: |