# HG changeset patch
# User Thomas Arendsen Hein <thomas@intevation.de>
# Date 2005-08-28 16:53:43
# Node ID d451888505d7510bbec6e14e418bbddf552ce62c
# Parent  e455d91f62598b8f255ce6c0291afe8f8565e0d2

Make diffstat optional for patchbomb script.


diff --git a/contrib/patchbomb b/contrib/patchbomb
--- 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)