Commit ea4fc839 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov

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/415829Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
parent b6849ac4
......@@ -600,8 +600,9 @@ def DeletePendingChangeEdit(host, change):
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 @@ def SetCommitMessage(host, change, description):
# 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:
......
......@@ -2480,7 +2480,7 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
gerrit_util.DeletePendingChangeEdit(self._GetGerritHost(),
self.GetIssue())
gerrit_util.SetCommitMessage(self._GetGerritHost(), self.GetIssue(),
description)
description, notify='NONE')
def CloseIssue(self):
gerrit_util.AbandonChange(self._GetGerritHost(), self.GetIssue(), msg='')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment