Commit be32c6aa authored by Russ Cox's avatar Russ Cox

codereview: allow editing of local CL description

between hg clpatch and hg submit.

R=r
https://golang.org/cl/162059
parent 1dc65e3a
...@@ -344,6 +344,13 @@ def LoadCL(ui, repo, name, web=True): ...@@ -344,6 +344,13 @@ 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'])
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.desc = f['description']
cl.url = server_url_base + name cl.url = server_url_base + name
cl.web = True cl.web = True
......
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