comparison hgext/patchbomb.py @ 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 23889160905a
children
comparison
equal deleted inserted replaced
5478:bff41174563f 5480:5223c360503e
139 if s: 139 if s:
140 if summary: 140 if summary:
141 ui.write(summary, '\n') 141 ui.write(summary, '\n')
142 ui.write(s, '\n') 142 ui.write(s, '\n')
143 confirm(_('Does the diffstat above look okay')) 143 confirm(_('Does the diffstat above look okay'))
144 elif s is None:
145 ui.warn(_('No diffstat information available.\n'))
146 s = ''
144 return s 147 return s
145 148
146 def makepatch(patch, idx, total): 149 def makepatch(patch, idx, total):
147 desc = [] 150 desc = []
148 node = None 151 node = None