From 2c8d4b29b9f619d8e6981afa6fa0f05386e02576 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Sat, 6 Jun 2009 21:03:10 +0000 Subject: [PATCH] TBR: nsylvain git-cl is broken git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17844 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcl.py b/gcl.py index f7aff382b4..ee94091f0a 100755 --- a/gcl.py +++ b/gcl.py @@ -306,13 +306,13 @@ class ChangeInfo(object): """Closes the Rietveld issue for this changelist.""" data = [("description", self.description),] ctype, body = upload.EncodeMultipartFormData(data, []) - SendToRietveld("/" + self.issue + "/close", body, ctype) + SendToRietveld("/%d/close" % self.issue, body, ctype) def UpdateRietveldDescription(self): """Sets the description for an issue on Rietveld.""" data = [("description", self.description),] ctype, body = upload.EncodeMultipartFormData(data, []) - SendToRietveld("/" + self.issue + "/description", body, ctype) + SendToRietveld("/%d/description" % self.issue, body, ctype) def MissingTests(self): """Returns True if the change looks like it needs unit tests but has none. @@ -921,6 +921,7 @@ def Commit(change_info, args): change_info.CloseIssue() os.chdir(previous_cwd) + def Change(change_info, override_description): """Creates/edits a changelist.""" if change_info.issue: @@ -930,7 +931,7 @@ def Change(change_info, override_description): if err.code == 404: # The user deleted the issue in Rietveld, so forget the old issue id. description = change_info.description - change_info.issue = "" + change_info.issue = 0 change_info.Save() else: ErrorExit("Error getting the description from Rietveld: " + err)