patchbomb: fix traceback when diffstat isn't available
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 26 Oct 2007 12:01:14 +0200
changeset 5478 5223c360503e
parent 5477 bff41174563f
child 5479 f7c99e89178f
child 5493 04f033a03b1d
patchbomb: fix traceback when diffstat isn't available
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Thu Oct 25 19:40:56 2007 +0200
+++ b/hgext/patchbomb.py	Fri Oct 26 12:01:14 2007 +0200
@@ -141,6 +141,9 @@
                 ui.write(summary, '\n')
                 ui.write(s, '\n')
             confirm(_('Does the diffstat above look okay'))
+        elif s is None:
+            ui.warn(_('No diffstat information available.\n'))
+            s = ''
         return s
 
     def makepatch(patch, idx, total):