1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -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:
Russ Cox 2009-11-02 11:37:21 -08:00
parent cd82d490fc
commit 9c13215859

View File

@ -145,8 +145,10 @@ class CL(object):
def Subject(self): def Subject(self):
s = line1(self.desc) s = line1(self.desc)
if len(s) > 60:
s = s[0:55] + "..."
if self.name != "new": if self.name != "new":
s = "codereview %s: %s" % (self.name, s) s = "code review %s: %s" % (self.name, s)
return s return s
def Upload(self, ui, repo, send_mail=False): def Upload(self, ui, repo, send_mail=False):