Show More
@@ -65,7 +65,7 | |||||
65 |
|
65 | |||
66 | from mercurial.demandload import * |
|
66 | from mercurial.demandload import * | |
67 | demandload(globals(), '''email.MIMEMultipart email.MIMEText email.Utils |
|
67 | demandload(globals(), '''email.MIMEMultipart email.MIMEText email.Utils | |
68 | mercurial:commands,hg,mail,ui,patch |
|
68 | mercurial:cmdutil,commands,hg,mail,ui,patch | |
69 | os errno popen2 socket sys tempfile time''') |
|
69 | os errno popen2 socket sys tempfile time''') | |
70 | from mercurial.i18n import gettext as _ |
|
70 | from mercurial.i18n import gettext as _ | |
71 | from mercurial.node import * |
|
71 | from mercurial.node import * | |
@@ -146,10 +146,10 def patchbomb(ui, repo, *revs, **opts): | |||||
146 | if patchname: |
|
146 | if patchname: | |
147 | patchname = patchname[0] |
|
147 | patchname = patchname[0] | |
148 | elif total > 1: |
|
148 | elif total > 1: | |
149 |
patchname = c |
|
149 | patchname = cmdutil.make_filename(repo, '%b-%n.patch', | |
150 | binnode, idx, total) |
|
150 | binnode, idx, total) | |
151 | else: |
|
151 | else: | |
152 |
patchname = c |
|
152 | patchname = cmdutil.make_filename(repo, '%b.patch', binnode) | |
153 | p['Content-Disposition'] = 'inline; filename=' + patchname |
|
153 | p['Content-Disposition'] = 'inline; filename=' + patchname | |
154 | msg.attach(p) |
|
154 | msg.attach(p) | |
155 | else: |
|
155 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now