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

Side by Side Diff: gclient.py

Issue 8357014: Remove the --jobs option to recurse (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
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) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 @attr('usage', '[command] [args ...]') 1108 @attr('usage', '[command] [args ...]')
1109 def CMDrecurse(parser, args): 1109 def CMDrecurse(parser, args):
1110 """Operates on all the entries. 1110 """Operates on all the entries.
1111 1111
1112 Runs a shell command on all entries. 1112 Runs a shell command on all entries.
1113 """ 1113 """
1114 # Stop parsing at the first non-arg so that these go through to the command 1114 # Stop parsing at the first non-arg so that these go through to the command
1115 parser.disable_interspersed_args() 1115 parser.disable_interspersed_args()
1116 parser.add_option('-s', '--scm', action='append', default=[], 1116 parser.add_option('-s', '--scm', action='append', default=[],
1117 help='choose scm types to operate upon') 1117 help='choose scm types to operate upon')
1118 parser.remove_option('--jobs')
1118 options, args = parser.parse_args(args) 1119 options, args = parser.parse_args(args)
1119 if not args: 1120 if not args:
1120 print >> sys.stderr, 'Need to supply a command!' 1121 print >> sys.stderr, 'Need to supply a command!'
1121 return 1 1122 return 1
1122 root_and_entries = gclient_utils.GetGClientRootAndEntries() 1123 root_and_entries = gclient_utils.GetGClientRootAndEntries()
1123 if not root_and_entries: 1124 if not root_and_entries:
1124 print >> sys.stderr, ( 1125 print >> sys.stderr, (
1125 'You need to run gclient sync at least once to use \'recurse\'.\n' 1126 'You need to run gclient sync at least once to use \'recurse\'.\n'
1126 'This is because .gclient_entries needs to exist and be up to date.') 1127 'This is because .gclient_entries needs to exist and be up to date.')
1127 return 1 1128 return 1
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 1506 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
1506 print >> sys.stderr, 'Error: %s' % str(e) 1507 print >> sys.stderr, 'Error: %s' % str(e)
1507 return 1 1508 return 1
1508 1509
1509 1510
1510 if '__main__' == __name__: 1511 if '__main__' == __name__:
1511 fix_encoding.fix_encoding() 1512 fix_encoding.fix_encoding()
1512 sys.exit(Main(sys.argv[1:])) 1513 sys.exit(Main(sys.argv[1:]))
1513 1514
1514 # vim: ts=2:sw=2:tw=80:et: 1515 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698