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 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if match: | 114 if match: |
115 repo = '%s.git' % match.group(1) | 115 repo = '%s.git' % match.group(1) |
116 return (path, GIT_HOST + 'native_client/%s' % repo) | 116 return (path, GIT_HOST + 'native_client/%s' % repo) |
117 | 117 |
118 # Projects that are subdirectories of the chromium/{src,tools} repository. | 118 # Projects that are subdirectories of the chromium/{src,tools} repository. |
119 match = re.match('/trunk/((src|tools)/.*)', svn_url) | 119 match = re.match('/trunk/((src|tools)/.*)', svn_url) |
120 if match: | 120 if match: |
121 repo = '%s.git' % match.group(1) | 121 repo = '%s.git' % match.group(1) |
122 return (path, GIT_HOST + 'chromium/%s' % repo) | 122 return (path, GIT_HOST + 'chromium/%s' % repo) |
123 | 123 |
| 124 # Public-header-only blink directory for iOS. |
| 125 if svn_url == (BLINK_TRUNK + '/public'): |
| 126 return (path, GIT_HOST + 'chromium/blink-public.git') |
| 127 |
124 # Main blink directory. | 128 # Main blink directory. |
125 if svn_url == BLINK_TRUNK: | 129 if svn_url == BLINK_TRUNK: |
126 return (path, GIT_HOST + 'chromium/blink.git') | 130 return (path, GIT_HOST + 'chromium/blink.git') |
127 | 131 |
128 # Minimal header-only webkit directories for iOS. | 132 # Minimal header-only webkit directories for iOS. |
129 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' + | 133 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' + |
130 'WebKit/chromium/public'): | 134 'WebKit/chromium/public'): |
131 return (path, | 135 return (path, |
132 GIT_HOST + 'external/WebKit/Source/WebKit/chromium/public.git') | 136 GIT_HOST + 'external/WebKit/Source/WebKit/chromium/public.git') |
133 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' + | 137 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' + |
(...skipping 18 matching lines...) Expand all Loading... |
152 return (path, GIT_HOST + 'chromium/deps/%s' % repo) | 156 return (path, GIT_HOST + 'chromium/deps/%s' % repo) |
153 | 157 |
154 # Subdirectories of the chromium deps/reference_builds directory. | 158 # Subdirectories of the chromium deps/reference_builds directory. |
155 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) | 159 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) |
156 if match: | 160 if match: |
157 repo = '%s.git' % match.group(1) | 161 repo = '%s.git' % match.group(1) |
158 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) | 162 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) |
159 | 163 |
160 # Nothing yet? Oops. | 164 # Nothing yet? Oops. |
161 print 'No match for %s' % svn_url | 165 print 'No match for %s' % svn_url |
OLD | NEW |