mirror of
https://github.com/golang/go
synced 2024-11-22 00:44:39 -07:00
rietveld does not like code reviews with subjects longer than 100 characters, so trim the line pulled out of the description to avoid the limit.
R=r http://go/go-review/1016027
This commit is contained in:
parent
cd82d490fc
commit
9c13215859
@ -145,8 +145,10 @@ class CL(object):
|
||||
|
||||
def Subject(self):
|
||||
s = line1(self.desc)
|
||||
if len(s) > 60:
|
||||
s = s[0:55] + "..."
|
||||
if self.name != "new":
|
||||
s = "codereview %s: %s" % (self.name, s)
|
||||
s = "code review %s: %s" % (self.name, s)
|
||||
return s
|
||||
|
||||
def Upload(self, ui, repo, send_mail=False):
|
||||
|
Loading…
Reference in New Issue
Block a user