Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 29325:4f2f8baba2ff
hgweb: remove unused code in annotate web command
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 01 Jun 2016 15:16:38 +0200 |
parents | ead25aa27a43 |
children | e4b777fe1576 |
line wrap: on
line diff
--- 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(),