diff -r c67fb3bfe3a1 -r 1fe3c8296cfe mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Wed Dec 06 18:37:49 2017 -0800 +++ b/mercurial/hgweb/webcommands.py Fri Dec 08 22:27:14 2017 +0800 @@ -413,7 +413,7 @@ else: nextentry = [] - return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav, + return tmpl('shortlog' if shortlog else 'changelog', changenav=changenav, node=ctx.hex(), rev=pos, symrev=symrev, changesets=count, entries=entries, latestentry=latestentry, nextentry=nextentry,