mirror of
https://github.com/golang/go
synced 2024-11-21 16:14:42 -07:00
codereview: don't mail change lists with no files
R=rsc CC=golang-dev https://golang.org/cl/3561041
This commit is contained in:
parent
3a97119517
commit
30c85bf14c
@ -1134,8 +1134,12 @@ def mail(ui, repo, *pats, **opts):
|
||||
return "no reviewers listed in CL"
|
||||
cl.cc = Sub(cl.cc, defaultcc)
|
||||
cl.reviewer = defaultcc
|
||||
cl.Flush(ui, repo)
|
||||
cl.Mail(ui, repo)
|
||||
cl.Flush(ui, repo)
|
||||
|
||||
if cl.files == []:
|
||||
return "no changed files, not sending mail"
|
||||
|
||||
cl.Mail(ui, repo)
|
||||
|
||||
def nocommit(ui, repo, *pats, **opts):
|
||||
"""(disabled when using this extension)"""
|
||||
|
Loading…
Reference in New Issue
Block a user