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