changeset 1136:d451888505d7

Make diffstat optional for patchbomb script.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 28 Aug 2005 18:53:43 +0200
parents e455d91f6259
children c54d03bdf2dc
files contrib/patchbomb
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)