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 | 7 |
8 Files | 8 Files |
9 .gclient : Current client configuration, written by 'config' command. | 9 .gclient : Current client configuration, written by 'config' command. |
10 Format is a Python script defining 'solutions', a list whose | 10 Format is a Python script defining 'solutions', a list whose |
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 | 1274 |
1275 Internally, runs 'svn diff'/'git diff' on each checked out module and | 1275 Internally, runs 'svn diff'/'git diff' on each checked out module and |
1276 dependencies, and performs minimal postprocessing of the output. The | 1276 dependencies, and performs minimal postprocessing of the output. The |
1277 resulting patch is printed to stdout and can be applied to a freshly | 1277 resulting patch is printed to stdout and can be applied to a freshly |
1278 checked out tree via 'patch -p0 < patchfile'. | 1278 checked out tree via 'patch -p0 < patchfile'. |
1279 """ | 1279 """ |
1280 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', | 1280 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', |
1281 help='override deps for the specified (comma-separated) ' | 1281 help='override deps for the specified (comma-separated) ' |
1282 'platform(s); \'all\' will process all deps_os ' | 1282 'platform(s); \'all\' will process all deps_os ' |
1283 'references') | 1283 'references') |
| 1284 parser.remove_option('--jobs') |
1284 (options, args) = parser.parse_args(args) | 1285 (options, args) = parser.parse_args(args) |
| 1286 # Force jobs to 1 so the stdout is not annotated with the thread ids |
| 1287 options.jobs = 1 |
1285 client = GClient.LoadCurrentConfig(options) | 1288 client = GClient.LoadCurrentConfig(options) |
1286 if not client: | 1289 if not client: |
1287 raise gclient_utils.Error('client not configured; see \'gclient config\'') | 1290 raise gclient_utils.Error('client not configured; see \'gclient config\'') |
1288 if options.verbose: | 1291 if options.verbose: |
1289 # Print out the .gclient file. This is longer than if we just printed the | 1292 # Print out the .gclient file. This is longer than if we just printed the |
1290 # client dict, but more legible, and it might contain helpful comments. | 1293 # client dict, but more legible, and it might contain helpful comments. |
1291 print(client.config_content) | 1294 print(client.config_content) |
1292 return client.RunOnDeps('pack', args) | 1295 return client.RunOnDeps('pack', args) |
1293 | 1296 |
1294 | 1297 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 1600 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
1598 print >> sys.stderr, 'Error: %s' % str(e) | 1601 print >> sys.stderr, 'Error: %s' % str(e) |
1599 return 1 | 1602 return 1 |
1600 | 1603 |
1601 | 1604 |
1602 if '__main__' == __name__: | 1605 if '__main__' == __name__: |
1603 fix_encoding.fix_encoding() | 1606 fix_encoding.fix_encoding() |
1604 sys.exit(Main(sys.argv[1:])) | 1607 sys.exit(Main(sys.argv[1:])) |
1605 | 1608 |
1606 # vim: ts=2:sw=2:tw=80:et: | 1609 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |