Add --issue option to 'git cl try-results'
Sometimes I want to get try bot results without checking out the
relevant branch.
R=agable@chromium.org
Bug:
Change-Id: I89d118962ee37b10d95cf4044b61a0f2234b7e60
Reviewed-on: https://chromium-review.googlesource.com/710500
Commit-Queue: Stefan Zager <szager@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 41c8dd6..0057b0b 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -5590,12 +5590,16 @@
'or "-" for stdout.'))
parser.add_option_group(group)
auth.add_auth_options(parser)
+ _add_codereview_issue_select_options(parser)
options, args = parser.parse_args(args)
+ _process_codereview_issue_select_options(parser, options)
if args:
parser.error('Unrecognized args: %s' % ' '.join(args))
auth_config = auth.extract_auth_config_from_options(options)
- cl = Changelist(auth_config=auth_config)
+ cl = Changelist(
+ issue=options.issue, codereview=options.forced_codereview,
+ auth_config=auth_config)
if not cl.GetIssue():
parser.error('Need to upload first')