Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index aba28f6746c3e40a95a1e674156f8ce3982c02c1..7ccf28d58af171fab2042d8c32937854155664b9 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -612,6 +612,11 @@ or verify this branch is set up to track another (via the --track argument to |
| return wrapper.fill(self.description) |
| return self.description |
| + def AddComment(self, comment): |
|
M-A Ruel
2013/01/25 23:28:43
This method doesn't add much, you can as well just
iannucci
2013/01/25 23:33:00
Ok, sgtm. I wasn't sure about consistency/style. S
M-A Ruel
2013/01/25 23:47:10
gcl and git_cl.py are completely separate, no need
|
| + """Adds a comment for an issue on Rietveld. |
| + As a side effect, this will email everyone associated with the issue.""" |
| + return self.RpcServer().add_comment(self.GetIssue(), comment) |
| + |
| def GetPatchset(self): |
| """Returns the patchset number as a int or None if not set.""" |
| if not self.has_patchset: |
| @@ -1495,6 +1500,9 @@ def SendUpstream(parser, args, cmd): |
| print ('Closing issue ' |
| '(you may be prompted for your codereview password)...') |
| cl.CloseIssue() |
| + comment = "Committed manually as r%s" % revision |
| + comment += ' (presubmit successful).' if not options.bypass_hooks else '.' |
| + cl.AddComment(comment) |
| cl.SetIssue(0) |
| if retcode == 0: |