From edbc41320d62d96df2287200488f02729b4de963 Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Mon, 11 Sep 2017 13:22:28 -0700 Subject: [PATCH] git-cl upload: Send mail when starting CQ R=tandrii@chromium.org Bug: 762009 Change-Id: I29a4ca06e0d29f5acb6c516d413fa2a35f8a5629 Reviewed-on: https://chromium-review.googlesource.com/661317 Reviewed-by: Andrii Shyshkalov Commit-Queue: Aaron Gable --- git_cl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 6f5e05643..3ae313ee9 100755 --- a/git_cl.py +++ b/git_cl.py @@ -4887,7 +4887,8 @@ def CMDupload(parser, args): dest="emulate_svn_auto_props", help="Emulate Subversion's auto properties feature.") parser.add_option('-c', '--use-commit-queue', action='store_true', - help='tell the commit queue to commit this patchset') + help='tell the commit queue to commit this patchset; ' + 'implies --send-mail') parser.add_option('--private', action='store_true', help='set the review private (rietveld only)') parser.add_option('--target_branch', @@ -4940,6 +4941,9 @@ def CMDupload(parser, args): if options.cq_dry_run and options.use_commit_queue: parser.error('only one of --use-commit-queue and --cq-dry-run allowed.') + if options.use_commit_queue: + options.send_mail = True + # For sanity of test expectations, do this otherwise lazy-loading *now*. settings.GetIsGerrit()