diff -r 7e10b860c174 -r c533435cbc37 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sat Nov 28 16:46:31 2015 +0800 +++ b/mercurial/hgweb/webcommands.py Sat Nov 28 17:06:29 2015 +0800 @@ -792,7 +792,7 @@ style = req.form['style'][0] diffs = webutil.diffs(web.repo, tmpl, ctx, None, [path], parity, style) - if fctx: + if fctx is not None: rename = webutil.renamelink(fctx) ctx = fctx else: