# HG changeset patch # User Denis Laxalde # Date 1464786998 -7200 # Node ID 4f2f8baba2ff99ac9753f55d13ff71115a28208c # Parent b501579147f158acca84392257e4663ed0e6fb91 hgweb: remove unused code in annotate web command diff -r b501579147f1 -r 4f2f8baba2ff mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sat Jun 04 14:38:00 2016 +0530 +++ b/mercurial/hgweb/webcommands.py Wed Jun 01 15:16:38 2016 +0200 @@ -864,7 +864,6 @@ section='annotate', whitespace=True) def annotate(**map): - last = None if util.binary(fctx.data()): mt = (mimetypes.guess_type(fctx.path())[0] or 'application/octet-stream') @@ -874,11 +873,6 @@ lines = enumerate(fctx.annotate(follow=True, linenumber=True, diffopts=diffopts)) for lineno, ((f, targetline), l) in lines: - fnode = f.filenode() - - if last != fnode: - last = fnode - yield {"parity": next(parity), "node": f.hex(), "rev": f.rev(),