1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:44:40 -07:00

codereview: allow editing of local CL description

between hg clpatch and hg submit.

R=r
https://golang.org/cl/162059
This commit is contained in:
Russ Cox 2009-11-30 10:28:48 -08:00
parent 1dc65e3aca
commit be32c6aaf5

View File

@ -344,7 +344,14 @@ def LoadCL(ui, repo, name, web=True):
return None, "malformed response loading CL data from code review server" return None, "malformed response loading CL data from code review server"
cl.reviewer = SplitCommaSpace(f['reviewers']) cl.reviewer = SplitCommaSpace(f['reviewers'])
cl.cc = SplitCommaSpace(f['cc']) cl.cc = SplitCommaSpace(f['cc'])
cl.desc = f['description'] if cl.local and cl.original_author and cl.desc:
# local copy of CL written by someone else
# and we saved a description. use that one,
# so that committers can edit the description
# before doing hg submit.
pass
else:
cl.desc = f['description']
cl.url = server_url_base + name cl.url = server_url_base + name
cl.web = True cl.web = True
return cl, '' return cl, ''