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

Side by Side Diff: gclient.py

Issue 930693002: gclient: Add '--auto_rebase' sync option. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 10 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 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 '--force, such dependencies are removed even if they ' 1965 '--force, such dependencies are removed even if they '
1966 'have local modifications. When used with --reset, ' 1966 'have local modifications. When used with --reset, '
1967 'all untracked directories are removed from the ' 1967 'all untracked directories are removed from the '
1968 'working copy, excluding those which are explicitly ' 1968 'working copy, excluding those which are explicitly '
1969 'ignored in the repository.') 1969 'ignored in the repository.')
1970 parser.add_option('-R', '--reset', action='store_true', 1970 parser.add_option('-R', '--reset', action='store_true',
1971 help='resets any local changes before updating (git only)') 1971 help='resets any local changes before updating (git only)')
1972 parser.add_option('-M', '--merge', action='store_true', 1972 parser.add_option('-M', '--merge', action='store_true',
1973 help='merge upstream changes instead of trying to ' 1973 help='merge upstream changes instead of trying to '
1974 'fast-forward or rebase') 1974 'fast-forward or rebase')
1975 parser.add_option('-A', '--auto-rebase', action='store_true',
hinoka 2015/02/17 18:43:55 nit: the other args use underscores
dnj 2015/02/17 19:57:59 Good catch, I prefer underscores anyway. I blame m
1976 help='Automatically rebase repositories against local '
1977 'checkout during update (git only).')
1975 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', 1978 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST',
1976 help='override deps for the specified (comma-separated) ' 1979 help='override deps for the specified (comma-separated) '
1977 'platform(s); \'all\' will process all deps_os ' 1980 'platform(s); \'all\' will process all deps_os '
1978 'references') 1981 'references')
1979 parser.add_option('-m', '--manually_grab_svn_rev', action='store_true', 1982 parser.add_option('-m', '--manually_grab_svn_rev', action='store_true',
1980 help='Skip svn up whenever possible by requesting ' 1983 help='Skip svn up whenever possible by requesting '
1981 'actual HEAD revision from the repository') 1984 'actual HEAD revision from the repository')
1982 parser.add_option('--upstream', action='store_true', 1985 parser.add_option('--upstream', action='store_true',
1983 help='Make repo state match upstream branch.') 1986 help='Make repo state match upstream branch.')
1984 parser.add_option('--output-json', 1987 parser.add_option('--output-json',
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 print >> sys.stderr, 'Error: %s' % str(e) 2260 print >> sys.stderr, 'Error: %s' % str(e)
2258 return 1 2261 return 1
2259 finally: 2262 finally:
2260 gclient_utils.PrintWarnings() 2263 gclient_utils.PrintWarnings()
2261 2264
2262 2265
2263 if '__main__' == __name__: 2266 if '__main__' == __name__:
2264 sys.exit(Main(sys.argv[1:])) 2267 sys.exit(Main(sys.argv[1:]))
2265 2268
2266 # vim: ts=2:sw=2:tw=80:et: 2269 # 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