diff -r 1eede2ea2041 -r 7bf48bc7de23 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sun May 13 17:34:55 2012 +0200 +++ b/mercurial/hgweb/webcommands.py Mon May 14 12:56:43 2012 +0200 @@ -558,6 +558,7 @@ if fctx is not None: n = fctx.node() path = fctx.path() + ctx = fctx.changectx() else: n = ctx.node() # path already defined in except clause @@ -567,7 +568,7 @@ if 'style' in req.form: style = req.form['style'][0] - diffs = webutil.diffs(web.repo, tmpl, fctx or ctx, [path], parity, style) + diffs = webutil.diffs(web.repo, tmpl, ctx, [path], parity, style) rename = fctx and webutil.renamelink(fctx) or [] ctx = fctx and fctx or ctx return tmpl("filediff",