Chromium Code Reviews| Index: gclient_scm.py |
| =================================================================== |
| --- gclient_scm.py (revision 107077) |
| +++ gclient_scm.py (working copy) |
| @@ -482,6 +482,10 @@ |
| base_url = self.url |
| return base_url[:base_url.rfind('/')] + url |
| + def Sha1FromSvnRevision(self, rev): |
| + # Returns the git sha1 for the corresponding svn revision. |
| + return self._Capture(['svn', 'find-rev', 'r' + rev]).split('\n')[-1] |
|
M-A Ruel
2011/10/25 13:11:14
return self._Capture(['svn', 'find-rev', 'r' + rev
|
| + |
| def _Clone(self, revision, url, options): |
| """Clone a git repository from the given URL. |