Show More
@@ -654,7 +654,13 b' class hgweb(object):' | |||
|
654 | 654 | |
|
655 | 655 | def annotate(**map): |
|
656 | 656 | last = None |
|
657 | lines = enumerate(fctx.annotate(follow=True, linenumber=True)) | |
|
657 | if util.binary(fctx.data()): | |
|
658 | mt = (mimetypes.guess_type(fctx.path())[0] | |
|
659 | or 'application/octet-stream') | |
|
660 | lines = enumerate([((fctx.filectx(fctx.filerev()), 1), | |
|
661 | '(binary:%s)' % mt)]) | |
|
662 | else: | |
|
663 | lines = enumerate(fctx.annotate(follow=True, linenumber=True)) | |
|
658 | 664 | for lineno, ((f, targetline), l) in lines: |
|
659 | 665 | fnode = f.filenode() |
|
660 | 666 | name = self.repo.ui.shortuser(f.user()) |
General Comments 0
You need to be logged in to leave comments.
Login now