Show More
@@ -135,17 +135,17 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
135 | 135 | msg = email.MIMEMultipart.MIMEMultipart() |
|
136 | 136 | if body: msg.attach(email.MIMEText.MIMEText(body, 'plain')) |
|
137 | 137 | p = email.MIMEText.MIMEText('\n'.join(patch), 'x-patch') |
|
138 | node = bin(node) | |
|
138 | binnode = bin(node) | |
|
139 | 139 | # if node is mq patch, it will have patch file name as tag |
|
140 | patchname = [t for t in repo.nodetags(node) | |
|
140 | patchname = [t for t in repo.nodetags(binnode) | |
|
141 | 141 | if t.endswith('.patch') or t.endswith('.diff')] |
|
142 | 142 | if patchname: |
|
143 | 143 | patchname = patchname[0] |
|
144 | 144 | elif total > 1: |
|
145 | 145 | patchname = commands.make_filename(repo, '%b-%n.patch', |
|
146 | node, idx, total) | |
|
146 | binnode, idx, total) | |
|
147 | 147 | else: |
|
148 | patchname = commands.make_filename(repo, '%b.patch', node) | |
|
148 | patchname = commands.make_filename(repo, '%b.patch', binnode) | |
|
149 | 149 | p['Content-Disposition'] = 'inline; filename=' + patchname |
|
150 | 150 | msg.attach(p) |
|
151 | 151 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now