1
0
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:
Ryan Hitchman 2011-01-19 14:46:06 -05:00 committed by Russ Cox
parent 3a97119517
commit 30c85bf14c

View File

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