Commit 1838bade authored by tandrii's avatar tandrii Committed by Commit bot

git cl: style cleanup.

R=emso@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2393253002
parent 9bd40a63
...@@ -4607,44 +4607,44 @@ def CMDtree(parser, args): ...@@ -4607,44 +4607,44 @@ def CMDtree(parser, args):
def CMDtry(parser, args): def CMDtry(parser, args):
"""Triggers try jobs through BuildBucket.""" '''Triggers try jobs through BuildBucket.'''
group = optparse.OptionGroup(parser, "Try job options") group = optparse.OptionGroup(parser, 'Try job options')
group.add_option( group.add_option(
"-b", "--bot", action="append", '-b', '--bot', action='append',
help=("IMPORTANT: specify ONE builder per --bot flag. Use it multiple " help=('IMPORTANT: specify ONE builder per --bot flag. Use it multiple '
"times to specify multiple builders. ex: " 'times to specify multiple builders. ex: '
"'-b win_rel -b win_layout'. See " '"-b win_rel -b win_layout". See '
"the try server waterfall for the builders name and the tests " 'the try server waterfall for the builders name and the tests '
"available.")) 'available.'))
group.add_option( group.add_option(
"-m", "--master", default='', '-m', '--master', default='',
help=("Specify a try master where to run the tries.")) help=('Specify a try master where to run the tries.'))
group.add_option( group.add_option(
"-r", "--revision", '-r', '--revision',
help="Revision to use for the try job; default: the " help='Revision to use for the try job; default: the '
"revision will be determined by the try server; see " 'revision will be determined by the try server; see '
"its waterfall for more info") 'its waterfall for more info')
group.add_option( group.add_option(
"-c", "--clobber", action="store_true", default=False, '-c', '--clobber', action='store_true', default=False,
help="Force a clobber before building; e.g. don't do an " help='Force a clobber before building; e.g. don\'t do an '
"incremental build") 'incremental build')
group.add_option( group.add_option(
"--project", '--project',
help="Override which project to use. Projects are defined " help='Override which project to use. Projects are defined '
"server-side to define what default bot set to use") 'server-side to define what default bot set to use')
group.add_option( group.add_option(
"-p", "--property", dest="properties", action="append", default=[], '-p', '--property', dest='properties', action='append', default=[],
help="Specify generic properties in the form -p key1=value1 -p " help='Specify generic properties in the form -p key1=value1 -p '
"key2=value2 etc (buildbucket only). The value will be treated as " 'key2=value2 etc (buildbucket only). The value will be treated as '
"json if decodable, or as string otherwise.") 'json if decodable, or as string otherwise.')
group.add_option( group.add_option(
"-n", "--name", help="Try job name; default to current branch name") '-n', '--name', help='Try job name; default to current branch name')
group.add_option( group.add_option(
"--use-rietveld", action="store_true", default=False, '--use-rietveld', action='store_true', default=False,
help="Use Rietveld to trigger try jobs.") help='Use Rietveld to trigger try jobs.')
group.add_option( group.add_option(
"--buildbucket-host", default='cr-buildbucket.appspot.com', '--buildbucket-host', default='cr-buildbucket.appspot.com',
help="Host of buildbucket. The default host is %default.") help='Host of buildbucket. The default host is %default.')
parser.add_option_group(group) parser.add_option_group(group)
auth.add_auth_options(parser) auth.add_auth_options(parser)
options, args = parser.parse_args(args) options, args = parser.parse_args(args)
...@@ -4813,17 +4813,18 @@ def CMDtry(parser, args): ...@@ -4813,17 +4813,18 @@ def CMDtry(parser, args):
def CMDtry_results(parser, args): def CMDtry_results(parser, args):
group = optparse.OptionGroup(parser, "Try job results options") """Prints info about try jobs associated with current CL."""
group = optparse.OptionGroup(parser, 'Try job results options')
group.add_option( group.add_option(
"-p", "--patchset", type=int, help="patchset number if not current.") '-p', '--patchset', type=int, help='patchset number if not current.')
group.add_option( group.add_option(
"--print-master", action='store_true', help="print master name as well.") '--print-master', action='store_true', help='print master name as well.')
group.add_option( group.add_option(
"--color", action='store_true', default=setup_color.IS_TTY, '--color', action='store_true', default=setup_color.IS_TTY,
help="force color output, useful when piping output.") help='force color output, useful when piping output.')
group.add_option( group.add_option(
"--buildbucket-host", default='cr-buildbucket.appspot.com', '--buildbucket-host', default='cr-buildbucket.appspot.com',
help="Host of buildbucket. The default host is %default.") help='Host of buildbucket. The default host is %default.')
group.add_option( group.add_option(
'--json', help='Path of JSON output file to write try job results to.') '--json', help='Path of JSON output file to write try job results to.')
parser.add_option_group(group) parser.add_option_group(group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment