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

Side by Side Diff: svn_to_git_public.py

Issue 15936006: Add blink header-only repo mapping for iOS (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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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