| OLD | NEW |
| 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 import json | 10 import json |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 parser.add_option('-t', dest='title', help='title for patchset') | 1086 parser.add_option('-t', dest='title', help='title for patchset') |
| 1087 parser.add_option('-r', '--reviewers', | 1087 parser.add_option('-r', '--reviewers', |
| 1088 help='reviewer email addresses') | 1088 help='reviewer email addresses') |
| 1089 parser.add_option('--cc', | 1089 parser.add_option('--cc', |
| 1090 help='cc email addresses') | 1090 help='cc email addresses') |
| 1091 parser.add_option('--send-mail', action='store_true', | 1091 parser.add_option('--send-mail', action='store_true', |
| 1092 help='send email to reviewer immediately') | 1092 help='send email to reviewer immediately') |
| 1093 parser.add_option("--emulate_svn_auto_props", action="store_true", | 1093 parser.add_option("--emulate_svn_auto_props", action="store_true", |
| 1094 dest="emulate_svn_auto_props", | 1094 dest="emulate_svn_auto_props", |
| 1095 help="Emulate Subversion's auto properties feature.") | 1095 help="Emulate Subversion's auto properties feature.") |
| 1096 parser.add_option("--desc_from_logs", action="store_true", | |
| 1097 dest="from_logs", | |
| 1098 help="""Squashes git commit logs into change description and | |
| 1099 uses message as subject""") | |
| 1100 parser.add_option('-c', '--use-commit-queue', action='store_true', | 1096 parser.add_option('-c', '--use-commit-queue', action='store_true', |
| 1101 help='tell the commit queue to commit this patchset') | 1097 help='tell the commit queue to commit this patchset') |
| 1102 if settings.GetIsGerrit(): | 1098 if settings.GetIsGerrit(): |
| 1103 parser.add_option('--target_branch', dest='target_branch', default='master', | 1099 parser.add_option('--target_branch', dest='target_branch', default='master', |
| 1104 help='target branch to upload') | 1100 help='target branch to upload') |
| 1105 (options, args) = parser.parse_args(args) | 1101 (options, args) = parser.parse_args(args) |
| 1106 | 1102 |
| 1107 # Print warning if the user used the -m/--message argument. This will soon | 1103 # Print warning if the user used the -m/--message argument. This will soon |
| 1108 # change to -t/--title. | 1104 # change to -t/--title. |
| 1109 if options.message: | 1105 if options.message: |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) | 1607 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) |
| 1612 | 1608 |
| 1613 # Not a known command. Default to help. | 1609 # Not a known command. Default to help. |
| 1614 GenUsage(parser, 'help') | 1610 GenUsage(parser, 'help') |
| 1615 return CMDhelp(parser, argv) | 1611 return CMDhelp(parser, argv) |
| 1616 | 1612 |
| 1617 | 1613 |
| 1618 if __name__ == '__main__': | 1614 if __name__ == '__main__': |
| 1619 fix_encoding.fix_encoding() | 1615 fix_encoding.fix_encoding() |
| 1620 sys.exit(main(sys.argv[1:])) | 1616 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |