Add handling for mapping new libvpx branch location.
[email protected]
Review URL: https://codereview.chromium.org/492413003
git-svn-id: http://src.chromium.org/svn/trunk/tools/deps2git@291329 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/buildspec_to_git.py b/buildspec_to_git.py
index 1b5b6f8..dd4bf31 100644
--- a/buildspec_to_git.py
+++ b/buildspec_to_git.py
@@ -142,6 +142,13 @@
return (path, GIT_HOST + 'chromium/deps/libvpx.git', GIT_HOST,
match.group('branch'))
+ # New location of libvpx branches.
+ match = re.match('/branches/(?P<branch>[^/]+)/deps/third_party/libvpx',
+ svn_url)
+ if match:
+ return (path, GIT_HOST + 'chromium/deps/libvpx.git', GIT_HOST,
+ match.group('branch'))
+
# Since the ffmpeg overrides are gone, we can't use the upstream git repo
# (which is what those overrides referenced), so use the mirror of the svn
# repo.