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

Side by Side Diff: git_cl.py

Issue 1470943002: Add shorter option -d for git cl upload --cq-dry-run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years 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) 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 # Copyright (C) 2008 Evan Martin <martine@danga.com> 6 # Copyright (C) 2008 Evan Martin <martine@danga.com>
7 7
8 """A git-command for integrating reviews on Rietveld.""" 8 """A git-command for integrating reviews on Rietveld."""
9 9
10 from distutils.version import LooseVersion 10 from distutils.version import LooseVersion
(...skipping 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 '--target-branch', 2350 '--target-branch',
2351 metavar='TARGET', 2351 metavar='TARGET',
2352 help='Apply CL to remote ref TARGET. ' + 2352 help='Apply CL to remote ref TARGET. ' +
2353 'Default: remote branch head, or master') 2353 'Default: remote branch head, or master')
2354 parser.add_option('--squash', action='store_true', 2354 parser.add_option('--squash', action='store_true',
2355 help='Squash multiple commits into one (Gerrit only)') 2355 help='Squash multiple commits into one (Gerrit only)')
2356 parser.add_option('--email', default=None, 2356 parser.add_option('--email', default=None,
2357 help='email address to use to connect to Rietveld') 2357 help='email address to use to connect to Rietveld')
2358 parser.add_option('--tbr-owners', dest='tbr_owners', action='store_true', 2358 parser.add_option('--tbr-owners', dest='tbr_owners', action='store_true',
2359 help='add a set of OWNERS to TBR') 2359 help='add a set of OWNERS to TBR')
2360 parser.add_option('--cq-dry-run', dest='cq_dry_run', action='store_true', 2360 parser.add_option('-d', '--cq-dry-run', dest='cq_dry_run',
2361 action='store_true',
2361 help='Send the patchset to do a CQ dry run right after ' 2362 help='Send the patchset to do a CQ dry run right after '
2362 'upload.') 2363 'upload.')
2363 parser.add_option('--dependencies', action='store_true', 2364 parser.add_option('--dependencies', action='store_true',
2364 help='Uploads CLs of all the local branches that depend on ' 2365 help='Uploads CLs of all the local branches that depend on '
2365 'the current branch') 2366 'the current branch')
2366 2367
2367 orig_args = args 2368 orig_args = args
2368 add_git_similarity(parser) 2369 add_git_similarity(parser)
2369 auth.add_auth_options(parser) 2370 auth.add_auth_options(parser)
2370 (options, args) = parser.parse_args(args) 2371 (options, args) = parser.parse_args(args)
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
3670 if __name__ == '__main__': 3671 if __name__ == '__main__':
3671 # These affect sys.stdout so do it outside of main() to simplify mocks in 3672 # These affect sys.stdout so do it outside of main() to simplify mocks in
3672 # unit testing. 3673 # unit testing.
3673 fix_encoding.fix_encoding() 3674 fix_encoding.fix_encoding()
3674 colorama.init() 3675 colorama.init()
3675 try: 3676 try:
3676 sys.exit(main(sys.argv[1:])) 3677 sys.exit(main(sys.argv[1:]))
3677 except KeyboardInterrupt: 3678 except KeyboardInterrupt:
3678 sys.stderr.write('interrupted\n') 3679 sys.stderr.write('interrupted\n')
3679 sys.exit(1) 3680 sys.exit(1)
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