hgext/patchbomb.py
changeset 30407 e1677cc29da6
parent 29841 d5883fd055c6
child 30635 a150173da1c1
equal deleted inserted replaced
30406:cff0f5926797 30407:e1677cc29da6
   164         if patchlines:
   164         if patchlines:
   165             patchlines.pop(0)
   165             patchlines.pop(0)
   166         while patchlines and not patchlines[0].strip():
   166         while patchlines and not patchlines[0].strip():
   167             patchlines.pop(0)
   167             patchlines.pop(0)
   168 
   168 
   169     ds = patch.diffstat(patchlines, git=opts.get('git'))
   169     ds = patch.diffstat(patchlines)
   170     if opts.get('diffstat'):
   170     if opts.get('diffstat'):
   171         body += ds + '\n\n'
   171         body += ds + '\n\n'
   172 
   172 
   173     addattachment = opts.get('attach') or opts.get('inline')
   173     addattachment = opts.get('attach') or opts.get('inline')
   174     if not addattachment or opts.get('body'):
   174     if not addattachment or opts.get('body'):