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

Side by Side Diff: gclient.py

Issue 10317002: Make gclient pack work again by not prefixing "thread_id>" (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | gclient_scm.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 generate simple patch for configured client and dependences 1270 generate simple patch for configured client and dependences
1271 """) 1271 """)
1272 def CMDpack(parser, args): 1272 def CMDpack(parser, args):
1273 """Generate a patch which can be applied at the root of the tree. 1273 """Generate a patch which can be applied at the root of the tree.
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',
M-A Ruel 2012/05/03 13:37:07 For completeness, I'd prefer to also do right befo
haitao.feng 2012/05/04 00:42:55 Done.
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 (options, args) = parser.parse_args(args) 1284 (options, args) = parser.parse_args(args)
1285 # Force jobs to 1 so the stdout is not annotated with the thread ids
1286 options.jobs = 1
1285 client = GClient.LoadCurrentConfig(options) 1287 client = GClient.LoadCurrentConfig(options)
1286 if not client: 1288 if not client:
1287 raise gclient_utils.Error('client not configured; see \'gclient config\'') 1289 raise gclient_utils.Error('client not configured; see \'gclient config\'')
1288 if options.verbose: 1290 if options.verbose:
1289 # Print out the .gclient file. This is longer than if we just printed the 1291 # 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. 1292 # client dict, but more legible, and it might contain helpful comments.
1291 print(client.config_content) 1293 print(client.config_content)
1292 return client.RunOnDeps('pack', args) 1294 return client.RunOnDeps('pack', args)
1293 1295
1294 1296
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 1599 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
1598 print >> sys.stderr, 'Error: %s' % str(e) 1600 print >> sys.stderr, 'Error: %s' % str(e)
1599 return 1 1601 return 1
1600 1602
1601 1603
1602 if '__main__' == __name__: 1604 if '__main__' == __name__:
1603 fix_encoding.fix_encoding() 1605 fix_encoding.fix_encoding()
1604 sys.exit(Main(sys.argv[1:])) 1606 sys.exit(Main(sys.argv[1:]))
1605 1607
1606 # vim: ts=2:sw=2:tw=80:et: 1608 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | gclient_scm.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698