Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/patchbomb @ 1147:d32b91ebad5d
Merge with TAH.
author | bos@serpentine.internal.keyresearch.com |
---|---|
date | Mon, 29 Aug 2005 10:31:41 -0700 |
parents | d451888505d7 |
children | c3cb9f39a91f |
comparison
equal
deleted
inserted
replaced
1146:9061f79c6c6f | 1147:d32b91ebad5d |
---|---|
105 return s | 105 return s |
106 | 106 |
107 def makepatch(patch, idx, total): | 107 def makepatch(patch, idx, total): |
108 desc = [] | 108 desc = [] |
109 node = None | 109 node = None |
110 body = '' | |
110 for line in patch: | 111 for line in patch: |
111 if line.startswith('#'): | 112 if line.startswith('#'): |
112 if line.startswith('# Node ID'): node = line.split()[-1] | 113 if line.startswith('# Node ID'): node = line.split()[-1] |
113 continue | 114 continue |
114 if line.startswith('diff -r'): break | 115 if line.startswith('diff -r'): break |
189 | 190 |
190 msg.attach(MIMEText('\n'.join(body) + '\n')) | 191 msg.attach(MIMEText('\n'.join(body) + '\n')) |
191 | 192 |
192 ui.write('\n') | 193 ui.write('\n') |
193 | 194 |
194 d = cdiffstat('Final summary:\n', jumbo) | 195 if opts['diffstat']: |
195 if d: msg.attach(MIMEText(d)) | 196 d = cdiffstat('Final summary:\n', jumbo) |
197 if d: msg.attach(MIMEText(d)) | |
196 | 198 |
197 msgs.insert(0, msg) | 199 msgs.insert(0, msg) |
198 | 200 |
199 if not opts['test']: | 201 if not opts['test']: |
200 s = smtplib.SMTP() | 202 s = smtplib.SMTP() |