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