changeset 5480:5223c360503e

patchbomb: fix traceback when diffstat isn't available
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 26 Oct 2007 12:01:14 +0200
parents bff41174563f
children 04f033a03b1d
files hgext/patchbomb.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -141,6 +141,9 @@ def patchbomb(ui, repo, *revs, **opts):
                 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):