Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 36204:33ed8b511185
cmdutil: pass ctx to makefilename() in place of repo/node pair (API)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 02 Apr 2015 23:32:28 +0900 |
parents | e711906aa42c |
children | 67ec4ad815e6 |
line wrap: on
line diff
--- 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'