| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env 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 """Meta checkout manager supporting both Subversion and GIT.""" | 6 """Meta checkout manager supporting both Subversion and GIT.""" |
| 7 # Files | 7 # Files |
| 8 # .gclient : Current client configuration, written by 'config' command. | 8 # .gclient : Current client configuration, written by 'config' command. |
| 9 # Format is a Python script defining 'solutions', a list whose | 9 # Format is a Python script defining 'solutions', a list whose |
| 10 # entries each are maps binding the strings "name" and "url" | 10 # entries each are maps binding the strings "name" and "url" |
| (...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 The chromium code repository has migrated completely to git. | 1287 The chromium code repository has migrated completely to git. |
| 1288 Your SVN-based checkout is now obsolete; you need to create a brand-new | 1288 Your SVN-based checkout is now obsolete; you need to create a brand-new |
| 1289 git checkout by following these instructions: | 1289 git checkout by following these instructions: |
| 1290 | 1290 |
| 1291 http://www.chromium.org/developers/how-tos/get-the-code | 1291 http://www.chromium.org/developers/how-tos/get-the-code |
| 1292 """) | 1292 """) |
| 1293 if (old_git_re.match(url_val.s.strip())): | 1293 if (old_git_re.match(url_val.s.strip())): |
| 1294 url_val.s = CHROMIUM_SRC_URL | 1294 url_val.s = CHROMIUM_SRC_URL |
| 1295 modified = True | 1295 modified = True |
| 1296 | 1296 |
| 1297 # Ensure deps_file is set to .DEPS.git. We enforce this here to smooth |
| 1298 # over switching between pre-git-migration and post-git-migration |
| 1299 # revisions. |
| 1300 # - For pre-migration revisions, .DEPS.git must be explicitly set. |
| 1301 # - For post-migration revisions, .DEPS.git is not present, so gclient |
| 1302 # will correctly fall back to DEPS. |
| 1303 if url_val.s == CHROMIUM_SRC_URL: |
| 1304 deps_file_idx = ast_dict_index(solution, 'deps_file') |
| 1305 if deps_file_idx != -1: |
| 1306 continue |
| 1307 solution.keys.append(ast.Str('deps_file')) |
| 1308 solution.values.append(ast.Str('.DEPS.git')) |
| 1309 modified = True |
| 1310 |
| 1297 if not modified: | 1311 if not modified: |
| 1298 return self | 1312 return self |
| 1299 | 1313 |
| 1300 print( | 1314 print( |
| 1301 """ | 1315 """ |
| 1302 WARNING: gclient detected an obsolete setting in your %s file. The file has | 1316 WARNING: gclient detected an obsolete setting in your %s file. The file has |
| 1303 been automagically updated. The previous version is available at %s.old. | 1317 been automagically updated. The previous version is available at %s.old. |
| 1304 """ % (options.config_filename, options.config_filename)) | 1318 """ % (options.config_filename, options.config_filename)) |
| 1305 | 1319 |
| 1306 # Replace existing .gclient with the updated version. | 1320 # Replace existing .gclient with the updated version. |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 print >> sys.stderr, 'Error: %s' % str(e) | 2197 print >> sys.stderr, 'Error: %s' % str(e) |
| 2184 return 1 | 2198 return 1 |
| 2185 finally: | 2199 finally: |
| 2186 gclient_utils.PrintWarnings() | 2200 gclient_utils.PrintWarnings() |
| 2187 | 2201 |
| 2188 | 2202 |
| 2189 if '__main__' == __name__: | 2203 if '__main__' == __name__: |
| 2190 sys.exit(Main(sys.argv[1:])) | 2204 sys.exit(Main(sys.argv[1:])) |
| 2191 | 2205 |
| 2192 # vim: ts=2:sw=2:tw=80:et: | 2206 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |