diff -r a3064fe3e495 -r 9d201b39ccd9 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sat Jun 03 20:39:33 2017 +0900 +++ b/mercurial/cmdutil.py Sat Jun 03 19:17:19 2017 +0900 @@ -1140,7 +1140,7 @@ extraexportmap = {} def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): - node = ctx.node() + node = scmutil.binnode(ctx) parents = [p.node() for p in ctx.parents() if p] branch = ctx.branch() if switch_parent: