Show More
@@ -143,7 +143,7 b' def _filerevision(web, fctx):' | |||
|
143 | 143 | f = fctx.path() |
|
144 | 144 | text = fctx.data() |
|
145 | 145 | parity = paritygen(web.stripecount) |
|
146 |
ishead = fctx.file |
|
|
146 | ishead = fctx.filenode() in fctx.filelog().heads() | |
|
147 | 147 | |
|
148 | 148 | if stringutil.binary(text): |
|
149 | 149 | mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' |
@@ -922,7 +922,7 b' def annotate(web):' | |||
|
922 | 922 | fctx = webutil.filectx(web.repo, web.req) |
|
923 | 923 | f = fctx.path() |
|
924 | 924 | parity = paritygen(web.stripecount) |
|
925 |
ishead = fctx.file |
|
|
925 | ishead = fctx.filenode() in fctx.filelog().heads() | |
|
926 | 926 | |
|
927 | 927 | # parents() is called once per line and several lines likely belong to |
|
928 | 928 | # same revision. So it is worth caching. |
General Comments 0
You need to be logged in to leave comments.
Login now