Index: svn_to_git_public.py |
=================================================================== |
--- svn_to_git_public.py (revision 292364) |
+++ svn_to_git_public.py (working copy) |
@@ -61,33 +61,11 @@ |
if svn_url == '/trunk/deps/cdm': |
return (path, GIT_HOST + 'chromium/cdm.git', GIT_HOST) |
- # TODO(niklase) Remove after landing https://codereview.chromium.org/86563002 |
- if re.match('^https?://webrtc.googlecode.com/svn/stable/webrtc$', svn_url): |
- return (path, GIT_HOST + 'external/webrtc/stable/webrtc.git', GIT_HOST) |
- |
- # TODO(niklase) Remove after landing https://codereview.chromium.org/86563002 |
- if re.match('^https?://webrtc.googlecode.com/svn/stable/talk$', svn_url): |
- return (path, GIT_HOST + 'external/webrtc/stable/talk.git', GIT_HOST) |
- |
- # TODO(niklase) Remove after landing https://codereview.chromium.org/86563002 |
- if re.match('^https?://webrtc.googlecode.com/svn/stable/src$', svn_url): |
- return (path, GIT_HOST + 'external/webrtc/stable/src.git', GIT_HOST) |
- |
- # webrtc 'trunk/src' mirror was created without 'trunk' in the name, unlike |
- # the other ones which are matched next. |
- match = re.match('^https?://webrtc.googlecode.com/svn/trunk/src', svn_url) |
+ match = re.match('^https?://webrtc.googlecode.com/svn/(deps|trunk)/(.*)', |
+ svn_url) |
if match: |
- return (path, GIT_HOST + 'external/webrtc/src.git', GIT_HOST) |
- |
- # webrtc 'trunk' mappings for everything but 'trunk/src'. |
- match = re.match('^https?://webrtc.googlecode.com/svn/trunk/(.*)', svn_url) |
- if match: |
- repo = '%s.git' % match.group(1) |
- return (path, GIT_HOST + 'external/webrtc/trunk/%s' % repo, GIT_HOST) |
- |
- if re.match('^https?://webrtc.googlecode.com/svn/deps/third_party/openmax$', |
- svn_url): |
- return (path, GIT_HOST + 'external/webrtc/deps/third_party/openmax.git', |
+ repo = '%s.git' % match.group(2) |
+ return (path, GIT_HOST + 'external/webrtc/%s/%s' % (match.group(1), repo), |
GIT_HOST) |
if svn_url in ('http://selenium.googlecode.com/svn/trunk/py/test', |