hgext/patchbomb.py
changeset 7359 b0fa5dbd9cdd
parent 7354 cad454f295b0
child 7360 42f1b8cb9a60
equal deleted inserted replaced
7358:3c2ed7c2dcb4 7359:b0fa5dbd9cdd
   157                          if t.endswith('.patch') or t.endswith('.diff')]
   157                          if t.endswith('.patch') or t.endswith('.diff')]
   158             if patchtags:
   158             if patchtags:
   159                 patchname = patchtags[0]
   159                 patchname = patchtags[0]
   160             elif total > 1:
   160             elif total > 1:
   161                 patchname = cmdutil.make_filename(repo, '%b-%n.patch',
   161                 patchname = cmdutil.make_filename(repo, '%b-%n.patch',
   162                                                   binnode, idx, total)
   162                                                   binnode, seqno=idx, total=total)
   163             else:
   163             else:
   164                 patchname = cmdutil.make_filename(repo, '%b.patch', binnode)
   164                 patchname = cmdutil.make_filename(repo, '%b.patch', binnode)
   165         disposition = 'inline'
   165         disposition = 'inline'
   166         if opts.get('attach'):
   166         if opts.get('attach'):
   167             disposition = 'attachment'
   167             disposition = 'attachment'