Show More
@@ -875,13 +875,12 def annotate(web, req, tmpl): | |||
|
875 | 875 | if util.binary(fctx.data()): |
|
876 | 876 | mt = (mimetypes.guess_type(fctx.path())[0] |
|
877 | 877 | or 'application/octet-stream') |
|
878 |
lines = |
|
|
879 | '(binary:%s)' % mt)]) | |
|
878 | lines = [((fctx.filectx(fctx.filerev()), 1), '(binary:%s)' % mt)] | |
|
880 | 879 | else: |
|
881 |
lines = |
|
|
882 |
|
|
|
880 | lines = fctx.annotate(follow=True, linenumber=True, | |
|
881 | diffopts=diffopts) | |
|
883 | 882 | previousrev = None |
|
884 | for lineno, ((f, targetline), l) in lines: | |
|
883 | for lineno, ((f, targetline), l) in enumerate(lines): | |
|
885 | 884 | rev = f.rev() |
|
886 | 885 | blockhead = rev != previousrev or None |
|
887 | 886 | previousrev = rev |
General Comments 0
You need to be logged in to leave comments.
Login now