Commit 83051152 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

git cl: fix bugs in UpdateDescription.

R=kbr@chromium.org
BUG=633572,688765

Change-Id: I05130cfd05f89a4605c34b15cadf13a33e3565d9
Reviewed-on: https://chromium-review.googlesource.com/439445
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 3186301a
......@@ -1459,9 +1459,9 @@ class Changelist(object):
upstream=upstream_branch)
def UpdateDescription(self, description, force=False):
self._codereview_impl.UpdateDescriptionRemote(description, force=force)
self.description = description
return self._codereview_impl.UpdateDescriptionRemote(
description, force=force)
self.has_description = True
def RunHook(self, committing, may_prompt, verbose, change):
"""Calls sys.exit() if the hook fails; returns a HookResults otherwise."""
......@@ -1938,8 +1938,7 @@ class _RietveldChangelistImpl(_ChangelistCodereviewBase):
return 'waiting'
def UpdateDescriptionRemote(self, description, force=False):
return self.RpcServer().update_description(
self.GetIssue(), self.description)
self.RpcServer().update_description(self.GetIssue(), description)
def CloseIssue(self):
return self.RpcServer().close_issue(self.GetIssue())
......
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