Commit 30c85bf1 authored by Ryan Hitchman's avatar Ryan Hitchman Committed by Russ Cox

codereview: don't mail change lists with no files

R=rsc
CC=golang-dev
https://golang.org/cl/3561041
parent 3a971195
......@@ -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)"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment