From 27db3f2c01f86cc079b513e19e63a5527e820ba2 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Tue, 10 Oct 2017 15:15:01 -0700 Subject: [PATCH] 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 Reviewed-by: Andrii Shyshkalov --- git_cl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 41c8dd604..0057b0b2b 100755 --- a/git_cl.py +++ b/git_cl.py @@ -5590,12 +5590,16 @@ def CMDtry_results(parser, args): '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')