##// END OF EJS Templates
only put numbers on patches if > 1 patch.
Vadim Gelfer -
r1846:4d2791f4 default
parent child Browse files
Show More
@@ -141,6 +141,9 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 if total == 1:
145 subj = '[PATCH] ' + desc[0].strip()
146 else:
144 subj = '[PATCH %d of %d] %s' % (idx, total, desc[0].strip())
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
General Comments 0
You need to be logged in to leave comments. Login now