1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -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" return "no reviewers listed in CL"
cl.cc = Sub(cl.cc, defaultcc) cl.cc = Sub(cl.cc, defaultcc)
cl.reviewer = defaultcc cl.reviewer = defaultcc
cl.Flush(ui, repo) cl.Flush(ui, repo)
cl.Mail(ui, repo)
if cl.files == []:
return "no changed files, not sending mail"
cl.Mail(ui, repo)
def nocommit(ui, repo, *pats, **opts): def nocommit(ui, repo, *pats, **opts):
"""(disabled when using this extension)""" """(disabled when using this extension)"""