Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/patchbomb @ 1136:d451888505d7
Make diffstat optional for patchbomb script.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 28 Aug 2005 18:53:43 +0200 |
parents | e455d91f6259 |
children | c3cb9f39a91f |
comparison
equal
deleted
inserted
replaced
1135:e455d91f6259 | 1136:d451888505d7 |
---|---|
190 | 190 |
191 msg.attach(MIMEText('\n'.join(body) + '\n')) | 191 msg.attach(MIMEText('\n'.join(body) + '\n')) |
192 | 192 |
193 ui.write('\n') | 193 ui.write('\n') |
194 | 194 |
195 d = cdiffstat('Final summary:\n', jumbo) | 195 if opts['diffstat']: |
196 if d: msg.attach(MIMEText(d)) | 196 d = cdiffstat('Final summary:\n', jumbo) |
197 if d: msg.attach(MIMEText(d)) | |
197 | 198 |
198 msgs.insert(0, msg) | 199 msgs.insert(0, msg) |
199 | 200 |
200 if not opts['test']: | 201 if not opts['test']: |
201 s = smtplib.SMTP() | 202 s = smtplib.SMTP() |