Show More
@@ -943,7 +943,7 b' def annotate(web):' | |||||
943 | for p in parentscache[rev]: |
|
943 | for p in parentscache[rev]: | |
944 | yield p |
|
944 | yield p | |
945 |
|
945 | |||
946 |
def annotate( |
|
946 | def annotate(context): | |
947 | if fctx.isbinary(): |
|
947 | if fctx.isbinary(): | |
948 | mt = (mimetypes.guess_type(fctx.path())[0] |
|
948 | mt = (mimetypes.guess_type(fctx.path())[0] | |
949 | or 'application/octet-stream') |
|
949 | or 'application/octet-stream') | |
@@ -986,7 +986,7 b' def annotate(web):' | |||||
986 | return web.sendtemplate( |
|
986 | return web.sendtemplate( | |
987 | 'fileannotate', |
|
987 | 'fileannotate', | |
988 | file=f, |
|
988 | file=f, | |
989 | annotate=annotate, |
|
989 | annotate=templateutil.mappinggenerator(annotate), | |
990 | path=webutil.up(f), |
|
990 | path=webutil.up(f), | |
991 | symrev=webutil.symrevorshortnode(web.req, fctx), |
|
991 | symrev=webutil.symrevorshortnode(web.req, fctx), | |
992 | rename=webutil.renamelink(fctx), |
|
992 | rename=webutil.renamelink(fctx), |
General Comments 0
You need to be logged in to leave comments.
Login now