mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00: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:
parent
1dc65e3aca
commit
be32c6aaf5
1 changed files with 8 additions and 1 deletions
|
@ -344,7 +344,14 @@ def LoadCL(ui, repo, name, web=True):
|
|||
return None, "malformed response loading CL data from code review server"
|
||||
cl.reviewer = SplitCommaSpace(f['reviewers'])
|
||||
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.web = True
|
||||
return cl, ''
|
||||
|
|
Loading…
Reference in a new issue