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

Side by Side Diff: gclient.py

Issue 1050853002: gclient: Add '--no-bootstrap' sync option. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | 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) 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 help='Make repo state match upstream branch.') 2017 help='Make repo state match upstream branch.')
2018 parser.add_option('--output-json', 2018 parser.add_option('--output-json',
2019 help='Output a json document to this path containing ' 2019 help='Output a json document to this path containing '
2020 'summary information about the sync.') 2020 'summary information about the sync.')
2021 parser.add_option('--no-history', action='store_true', 2021 parser.add_option('--no-history', action='store_true',
2022 help='GIT ONLY - Reduces the size/time of the checkout at ' 2022 help='GIT ONLY - Reduces the size/time of the checkout at '
2023 'the cost of no history. Requires Git 1.9+') 2023 'the cost of no history. Requires Git 1.9+')
2024 parser.add_option('--shallow', action='store_true', 2024 parser.add_option('--shallow', action='store_true',
2025 help='GIT ONLY - Do a shallow clone into the cache dir. ' 2025 help='GIT ONLY - Do a shallow clone into the cache dir. '
2026 'Requires Git 1.9+') 2026 'Requires Git 1.9+')
2027 parser.add_option('--no_bootstrap', '--no-bootstrap',
2028 action='store_true',
2029 help='Don\'t bootstrap from Google Storage')
hinoka 2015/04/02 06:33:35 nit: period
USE eero AT chromium.org 2015/04/02 08:00:56 Done. I copied the help message from git_cache.py
2027 parser.add_option('--ignore_locks', action='store_true', 2030 parser.add_option('--ignore_locks', action='store_true',
2028 help='GIT ONLY - Ignore cache locks.') 2031 help='GIT ONLY - Ignore cache locks.')
2029 (options, args) = parser.parse_args(args) 2032 (options, args) = parser.parse_args(args)
2030 client = GClient.LoadCurrentConfig(options) 2033 client = GClient.LoadCurrentConfig(options)
2031 2034
2032 if not client: 2035 if not client:
2033 raise gclient_utils.Error('client not configured; see \'gclient config\'') 2036 raise gclient_utils.Error('client not configured; see \'gclient config\'')
2034 2037
2035 if options.revisions and options.head: 2038 if options.revisions and options.head:
2036 # TODO(maruel): Make it a parser.error if it doesn't break any builder. 2039 # TODO(maruel): Make it a parser.error if it doesn't break any builder.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 2299
2297 2300
2298 if '__main__' == __name__: 2301 if '__main__' == __name__:
2299 try: 2302 try:
2300 sys.exit(main(sys.argv[1:])) 2303 sys.exit(main(sys.argv[1:]))
2301 except KeyboardInterrupt: 2304 except KeyboardInterrupt:
2302 sys.stderr.write('interrupted\n') 2305 sys.stderr.write('interrupted\n')
2303 sys.exit(1) 2306 sys.exit(1)
2304 2307
2305 # vim: ts=2:sw=2:tw=80:et: 2308 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698