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

Side by Side Diff: svn_to_git_public.py

Issue 15970005: Remove mapping for iOS WebKit header repos (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/deps2git
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 124 # Public-header-only blink directory for iOS.
125 if svn_url == (BLINK_TRUNK + '/public'): 125 if svn_url == (BLINK_TRUNK + '/public'):
126 return (path, GIT_HOST + 'chromium/blink-public.git') 126 return (path, GIT_HOST + 'chromium/blink-public.git')
127 127
128 # Main blink directory. 128 # Main blink directory.
129 if svn_url == BLINK_TRUNK: 129 if svn_url == BLINK_TRUNK:
130 return (path, GIT_HOST + 'chromium/blink.git') 130 return (path, GIT_HOST + 'chromium/blink.git')
131 131
132 # Minimal header-only webkit directories for iOS. 132 # Ignore all webkit directories, since we fetch the whole thing directly for
133 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' + 133 # all but iOS.
134 'WebKit/chromium/public'):
135 return (path,
136 GIT_HOST + 'external/WebKit/Source/WebKit/chromium/public.git')
137 if svn_url == ('http://svn.webkit.org/repository/webkit/trunk/Source/' +
138 'Platform/chromium/public'):
139 return (path,
140 GIT_HOST + 'external/WebKit/Source/Platform/chromium/public.git')
141
142 # Ignore all webkit directories (other than the above), since we fetch the
143 # whole thing directly for all but iOS.
144 if svn_url == '/trunk/deps/third_party/WebKit': 134 if svn_url == '/trunk/deps/third_party/WebKit':
145 return 135 return
146 136
147 if svn_url.startswith(BLINK_TRUNK): 137 if svn_url.startswith(BLINK_TRUNK):
148 return 138 return
149 139
150 # blink 140 # blink
151 141
152 # Subdirectories of the chromium deps/third_party directory. 142 # Subdirectories of the chromium deps/third_party directory.
153 match = re.match('/trunk/deps/third_party/(.*)', svn_url) 143 match = re.match('/trunk/deps/third_party/(.*)', svn_url)
154 if match: 144 if match:
155 repo = '%s.git' % match.group(1) 145 repo = '%s.git' % match.group(1)
156 return (path, GIT_HOST + 'chromium/deps/%s' % repo) 146 return (path, GIT_HOST + 'chromium/deps/%s' % repo)
157 147
158 # Subdirectories of the chromium deps/reference_builds directory. 148 # Subdirectories of the chromium deps/reference_builds directory.
159 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) 149 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url)
160 if match: 150 if match:
161 repo = '%s.git' % match.group(1) 151 repo = '%s.git' % match.group(1)
162 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) 152 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo)
163 153
164 # Nothing yet? Oops. 154 # Nothing yet? Oops.
165 print 'No match for %s' % svn_url 155 print 'No match for %s' % svn_url
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698