# HG changeset patch # User Benoit Boissinot # Date 1193392874 -7200 # Node ID 5223c360503e81639704a0bc661ccc2232becb0b # Parent bff41174563ff7bd98889d4937af75e8fd0bfa69 patchbomb: fix traceback when diffstat isn't available diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- 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):