contrib/patchbomb
changeset 1136 d451888505d7
parent 1135 e455d91f6259
child 1154 c3cb9f39a91f
--- a/contrib/patchbomb
+++ b/contrib/patchbomb
@@ -192,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)