1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:54: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:
Ryan Hitchman 2011-01-19 14:46:06 -05:00 committed by Russ Cox
parent 3a97119517
commit 30c85bf14c

View File

@ -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):