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 <tandrii@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 6f5e056..3ae313e 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -4887,7 +4887,8 @@
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 @@
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()