Make diffstat optional for patchbomb script.
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 28 Aug 2005 18:53:43 +0200
changeset 1136 d451888505d7
parent 1135 e455d91f6259
child 1137 c54d03bdf2dc
Make diffstat optional for patchbomb script.
contrib/patchbomb
--- a/contrib/patchbomb	Sun Aug 28 18:52:55 2005 +0200
+++ b/contrib/patchbomb	Sun Aug 28 18:53:43 2005 +0200
@@ -192,8 +192,9 @@
 
     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)