hgext/patchbomb.py
changeset 36204 33ed8b511185
parent 35674 e711906aa42c
child 36410 67ec4ad815e6
--- a/hgext/patchbomb.py	Thu Apr 02 23:22:02 2015 +0900
+++ b/hgext/patchbomb.py	Thu Apr 02 23:32:28 2015 +0900
@@ -265,11 +265,10 @@
             if patchtags:
                 patchname = patchtags[0]
             elif total > 1:
-                patchname = cmdutil.makefilename(repo, '%b-%n.patch',
-                                                 binnode, seqno=idx,
-                                                 total=total)
+                patchname = cmdutil.makefilename(repo[node], '%b-%n.patch',
+                                                 seqno=idx, total=total)
             else:
-                patchname = cmdutil.makefilename(repo, '%b.patch', binnode)
+                patchname = cmdutil.makefilename(repo[node], '%b.patch')
         disposition = 'inline'
         if opts.get('attach'):
             disposition = 'attachment'