| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Public buildspec to GIT mapping.""" | 5 """Public buildspec to GIT mapping.""" |
| 6 | 6 |
| 7 import re | 7 import re |
| 8 from deps2git import SplitScmUrl | 8 from deps2git import SplitScmUrl |
| 9 | 9 |
| 10 GIT_HOST = 'https://chromium.googlesource.com/' | 10 GIT_HOST = 'https://chromium.googlesource.com/' |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 svn_url) | 221 svn_url) |
| 222 if match: | 222 if match: |
| 223 # ios has a special headers-only repo | 223 # ios has a special headers-only repo |
| 224 if match.group('path'): | 224 if match.group('path'): |
| 225 repo = GIT_HOST + 'chromium/blink-public.git' | 225 repo = GIT_HOST + 'chromium/blink-public.git' |
| 226 else: | 226 else: |
| 227 repo = GIT_HOST + 'chromium/blink.git' | 227 repo = GIT_HOST + 'chromium/blink.git' |
| 228 return (path, repo, GIT_HOST, match.group('branch')) | 228 return (path, repo, GIT_HOST, match.group('branch')) |
| 229 | 229 |
| 230 # reference builds | 230 # reference builds |
| 231 if svn_url.startswith('/trunk/deps/reference_builds/chrome'): | 231 # TODO(mmoss): This is no longer appropriate for current buildspecs, where |
| 232 return (path, GIT_HOST + 'chromium/reference_builds/chrome.git', | 232 # each platform has its own repo, as defined in git_updater. Not sure if |
| 233 GIT_HOST) | 233 # there's a way to detect and handle the current and the old repo configs at |
| 234 # the same time. Turning off for now, since we care more about current |
| 235 # configs. |
| 236 #if svn_url.startswith('/trunk/deps/reference_builds/chrome'): |
| 237 # return (path, GIT_HOST + 'chromium/reference_builds/chrome.git', |
| 238 # GIT_HOST) |
| OLD | NEW |