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

Side by Side Diff: gclient.py

Issue 490743002: Add --with_tags to enable git tag fetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 4 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') | 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 help='Enforces revision/hash for the solutions with the ' 1771 help='Enforces revision/hash for the solutions with the '
1772 'format src@rev. The src@ part is optional and can be ' 1772 'format src@rev. The src@ part is optional and can be '
1773 'skipped. -r can be used multiple times when .gclient ' 1773 'skipped. -r can be used multiple times when .gclient '
1774 'has multiple solutions configured and will work even ' 1774 'has multiple solutions configured and will work even '
1775 'if the src@ part is skipped. Note that specifying ' 1775 'if the src@ part is skipped. Note that specifying '
1776 '--revision means your safesync_url gets ignored.') 1776 '--revision means your safesync_url gets ignored.')
1777 parser.add_option('--with_branch_heads', action='store_true', 1777 parser.add_option('--with_branch_heads', action='store_true',
1778 help='Clone git "branch_heads" refspecs in addition to ' 1778 help='Clone git "branch_heads" refspecs in addition to '
1779 'the default refspecs. This adds about 1/2GB to a ' 1779 'the default refspecs. This adds about 1/2GB to a '
1780 'full checkout. (git only)') 1780 'full checkout. (git only)')
1781 parser.add_option('--with_tags', action='store_true',
1782 help='Clone git tags in addition to the default refspecs.')
1781 parser.add_option('-t', '--transitive', action='store_true', 1783 parser.add_option('-t', '--transitive', action='store_true',
1782 help='When a revision is specified (in the DEPS file or ' 1784 help='When a revision is specified (in the DEPS file or '
1783 'with the command-line flag), transitively update ' 1785 'with the command-line flag), transitively update '
1784 'the dependencies to the date of the given revision. ' 1786 'the dependencies to the date of the given revision. '
1785 'Only supported for SVN repositories.') 1787 'Only supported for SVN repositories.')
1786 parser.add_option('-H', '--head', action='store_true', 1788 parser.add_option('-H', '--head', action='store_true',
1787 help='skips any safesync_urls specified in ' 1789 help='skips any safesync_urls specified in '
1788 'configured solutions and sync to head instead') 1790 'configured solutions and sync to head instead')
1789 parser.add_option('-D', '--delete_unversioned_trees', action='store_true', 1791 parser.add_option('-D', '--delete_unversioned_trees', action='store_true',
1790 help='Deletes from the working copy any dependencies that ' 1792 help='Deletes from the working copy any dependencies that '
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 print >> sys.stderr, 'Error: %s' % str(e) 2066 print >> sys.stderr, 'Error: %s' % str(e)
2065 return 1 2067 return 1
2066 finally: 2068 finally:
2067 gclient_utils.PrintWarnings() 2069 gclient_utils.PrintWarnings()
2068 2070
2069 2071
2070 if '__main__' == __name__: 2072 if '__main__' == __name__:
2071 sys.exit(Main(sys.argv[1:])) 2073 sys.exit(Main(sys.argv[1:]))
2072 2074
2073 # vim: ts=2:sw=2:tw=80:et: 2075 # 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