Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Chromium_Depot_tools
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
Chromium_Depot_tools
Commits
1838bade
Commit
1838bade
authored
Oct 06, 2016
by
tandrii
Committed by
Commit bot
Oct 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git cl: style cleanup.
R=emso@chromium.org BUG= Review-Url:
https://codereview.chromium.org/2393253002
parent
9bd40a63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
36 deletions
+37
-36
git_cl.py
git_cl.py
+37
-36
No files found.
git_cl.py
View file @
1838bade
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment