Commit 9c132158 authored by Russ Cox's avatar Russ Cox

rietveld does not like code reviews with subjects longer than 100 characters, so…

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
parent cd82d490
......@@ -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):
......
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