Mercurial > hg > mercurial-crew-with-dirclash
diff 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 |
line wrap: on
line diff
--- a/contrib/patchbomb +++ b/contrib/patchbomb @@ -107,6 +107,7 @@ def patchbomb(ui, repo, *revs, **opts): def makepatch(patch, idx, total): desc = [] node = None + body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] @@ -191,8 +192,9 @@ def patchbomb(ui, repo, *revs, **opts): ui.write('\n') - d = cdiffstat('Final summary:\n', jumbo) - if d: msg.attach(MIMEText(d)) + if opts['diffstat']: + d = cdiffstat('Final summary:\n', jumbo) + if d: msg.attach(MIMEText(d)) msgs.insert(0, msg)