Show More
@@ -864,7 +864,6 def annotate(web, req, tmpl): | |||||
864 | section='annotate', whitespace=True) |
|
864 | section='annotate', whitespace=True) | |
865 |
|
865 | |||
866 | def annotate(**map): |
|
866 | def annotate(**map): | |
867 | last = None |
|
|||
868 | if util.binary(fctx.data()): |
|
867 | if util.binary(fctx.data()): | |
869 | mt = (mimetypes.guess_type(fctx.path())[0] |
|
868 | mt = (mimetypes.guess_type(fctx.path())[0] | |
870 | or 'application/octet-stream') |
|
869 | or 'application/octet-stream') | |
@@ -874,11 +873,6 def annotate(web, req, tmpl): | |||||
874 | lines = enumerate(fctx.annotate(follow=True, linenumber=True, |
|
873 | lines = enumerate(fctx.annotate(follow=True, linenumber=True, | |
875 | diffopts=diffopts)) |
|
874 | diffopts=diffopts)) | |
876 | for lineno, ((f, targetline), l) in lines: |
|
875 | for lineno, ((f, targetline), l) in lines: | |
877 | fnode = f.filenode() |
|
|||
878 |
|
||||
879 | if last != fnode: |
|
|||
880 | last = fnode |
|
|||
881 |
|
||||
882 | yield {"parity": next(parity), |
|
876 | yield {"parity": next(parity), | |
883 | "node": f.hex(), |
|
877 | "node": f.hex(), | |
884 | "rev": f.rev(), |
|
878 | "rev": f.rev(), |
General Comments 0
You need to be logged in to leave comments.
Login now