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

Unified Diff: svn_to_git_public.py

Issue 627493002: deps2git: Improve support for WebRTC and its deps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/deps2git/
Patch Set: Undid rename in PS4 Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | svn_to_git_public_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
« no previous file with comments | « no previous file | svn_to_git_public_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698