Gerrit git cl desc: don't notify reviwers.
R=agable@chromium.org
BUG=644101
TEST=manual
Change-Id: I82b7209981a834c8f26d65d2701d665a4eb2ba51
Reviewed-on: https://chromium-review.googlesource.com/415829
Reviewed-by: Aaron Gable <agable@chromium.org>
diff --git a/gerrit_util.py b/gerrit_util.py
index 6fb1d9d..cd2102c 100755
--- a/gerrit_util.py
+++ b/gerrit_util.py
@@ -600,8 +600,9 @@
raise
-def SetCommitMessage(host, change, description):
+def SetCommitMessage(host, change, description, notify='ALL'):
"""Updates a commit message."""
+ assert notify in ('ALL', 'NONE')
# First, edit the commit message in a draft.
path = 'changes/%s/edit:message' % change
body = {'message': description}
@@ -619,7 +620,7 @@
# And then publish it.
path = 'changes/%s/edit:publish' % change
- conn = CreateHttpConn(host, path, reqtype='POST', body={})
+ conn = CreateHttpConn(host, path, reqtype='POST', body={'notify': notify})
try:
ReadHttpResponse(conn, ignore_404=False)
except GerritError as e: