diff -r 7dab4c0cdb41 -r 4bec8cce6a09 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sat Jun 03 14:05:52 2017 +0900 +++ b/mercurial/cmdutil.py Sat Jun 03 18:57:28 2017 +0900 @@ -1349,7 +1349,7 @@ hexfunc = short # as of now, wctx.node() and wctx.rev() return None, but we want to # show the same values as {node} and {rev} templatekw - revnode = (scmutil.intrev(rev), hexfunc(bin(ctx.hex()))) + revnode = (scmutil.intrev(ctx), hexfunc(bin(ctx.hex()))) if self.ui.quiet: self.ui.write("%d:%s\n" % revnode, label='log.node')