Show More
@@ -141,7 +141,10 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
141 | 141 | body += cdiffstat('\n'.join(desc), patch) + '\n\n' |
|
142 | 142 | body += '\n'.join(patch) |
|
143 | 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 | 148 | if subj.endswith('.'): subj = subj[:-1] |
|
146 | 149 | msg['Subject'] = subj |
|
147 | 150 | msg['X-Mercurial-Node'] = node |
General Comments 0
You need to be logged in to leave comments.
Login now