Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """SVN to GIT mapping for the public Chromium repositories.""" | 6 """SVN to GIT mapping for the public Chromium repositories.""" |
| 7 | 7 |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 | 10 |
| 11 GIT_HOST = 'http://git.chromium.org/' | 11 GIT_HOST = 'http://chromium.googlesource.com/' |
|
cmp
2012/11/14 21:59:41
Let's make this https:// instead.
szager1
2012/11/14 22:33:21
Done.
| |
| 12 | 12 |
| 13 | 13 |
| 14 # Used by deps2git.ConvertDepsToGit() as overrides for SVN DEPS. Each entry | 14 # Used by deps2git.ConvertDepsToGit() as overrides for SVN DEPS. Each entry |
| 15 # maps a DEPS path to a DEPS variable identifying the Git hash for its | 15 # maps a DEPS path to a DEPS variable identifying the Git hash for its |
| 16 # respective repository. Variables are automatically transferred from SVN DEPS | 16 # respective repository. Variables are automatically transferred from SVN DEPS |
| 17 # to .DEPS.git and converted into variables by deps_utils.Varify(). | 17 # to .DEPS.git and converted into variables by deps_utils.Varify(). |
| 18 DEPS_OVERRIDES = { | 18 DEPS_OVERRIDES = { |
| 19 'src/third_party/ffmpeg': 'ffmpeg_hash' | 19 'src/third_party/ffmpeg': 'ffmpeg_hash' |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 return (path, GIT_HOST + 'chromium/deps/%s' % repo) | 124 return (path, GIT_HOST + 'chromium/deps/%s' % repo) |
| 125 | 125 |
| 126 # Subdirectories of the chromium deps/reference_builds directory. | 126 # Subdirectories of the chromium deps/reference_builds directory. |
| 127 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) | 127 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) |
| 128 if match: | 128 if match: |
| 129 repo = '%s.git' % match.group(1) | 129 repo = '%s.git' % match.group(1) |
| 130 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) | 130 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) |
| 131 | 131 |
| 132 # Nothing yet? Oops. | 132 # Nothing yet? Oops. |
| 133 print 'No match for %s' % svn_url | 133 print 'No match for %s' % svn_url |
| OLD | NEW |