mirror of
https://github.com/golang/go
synced 2024-11-21 19:24:45 -07:00
codereview.py: do not suggest hg change -d if current user is not CL author
R=golang-dev, rsc1, rsc CC=golang-dev https://golang.org/cl/4253064
This commit is contained in:
parent
d64a18a27e
commit
1ddc27888b
@ -1558,7 +1558,10 @@ def sync_changes(ui, repo):
|
|||||||
cl.files = Sub(cl.files, extra)
|
cl.files = Sub(cl.files, extra)
|
||||||
cl.Flush(ui, repo)
|
cl.Flush(ui, repo)
|
||||||
if not cl.files:
|
if not cl.files:
|
||||||
ui.warn("CL %s has no files; suggest hg change -d %s\n" % (cl.name, cl.name))
|
if not cl.copied_from:
|
||||||
|
ui.warn("CL %s has no files; delete with hg change -d %s\n" % (cl.name, cl.name))
|
||||||
|
else:
|
||||||
|
ui.warn("CL %s has no files; delete locally with hg change -D %s\n" % (cl.name, cl.name))
|
||||||
return
|
return
|
||||||
|
|
||||||
def upload(ui, repo, name, **opts):
|
def upload(ui, repo, name, **opts):
|
||||||
|
Loading…
Reference in New Issue
Block a user