mirror of
https://github.com/golang/go
synced 2024-11-21 21:34:40 -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
@ -1135,6 +1135,10 @@ def mail(ui, repo, *pats, **opts):
|
||||
cl.cc = Sub(cl.cc, defaultcc)
|
||||
cl.reviewer = defaultcc
|
||||
cl.Flush(ui, repo)
|
||||
|
||||
if cl.files == []:
|
||||
return "no changed files, not sending mail"
|
||||
|
||||
cl.Mail(ui, repo)
|
||||
|
||||
def nocommit(ui, repo, *pats, **opts):
|
||||
|
Loading…
Reference in New Issue
Block a user