Show More
@@ -141,7 +141,10 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
141 | body += cdiffstat('\n'.join(desc), patch) + '\n\n' |
|
141 | body += cdiffstat('\n'.join(desc), patch) + '\n\n' | |
142 | body += '\n'.join(patch) |
|
142 | body += '\n'.join(patch) | |
143 | msg = email.MIMEText.MIMEText(body) |
|
143 | msg = email.MIMEText.MIMEText(body) | |
144 | subj = '[PATCH %d of %d] %s' % (idx, total, desc[0].strip()) |
|
144 | if total == 1: | |
|
145 | subj = '[PATCH] ' + desc[0].strip() | |||
|
146 | else: | |||
|
147 | subj = '[PATCH %d of %d] %s' % (idx, total, desc[0].strip()) | |||
145 | if subj.endswith('.'): subj = subj[:-1] |
|
148 | if subj.endswith('.'): subj = subj[:-1] | |
146 | msg['Subject'] = subj |
|
149 | msg['Subject'] = subj | |
147 | msg['X-Mercurial-Node'] = node |
|
150 | msg['X-Mercurial-Node'] = node |
General Comments 0
You need to be logged in to leave comments.
Login now