[PATCH 8 of 8] Make diffstat optional for patchbomb script

Thomas Arendsen Hein thomas at intevation.de
Sun Aug 28 11:54:58 CDT 2005


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Node ID d451888505d7510bbec6e14e418bbddf552ce62c
# Parent  e455d91f62598b8f255ce6c0291afe8f8565e0d2
Make diffstat optional for patchbomb script.

diff -r e455d91f6259 -r d451888505d7 contrib/patchbomb
--- a/contrib/patchbomb	Sun Aug 28 16:52:55 2005
+++ b/contrib/patchbomb	Sun Aug 28 16:53:43 2005
@@ -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)
 


More information about the Mercurial mailing list