Show More
@@ -294,7 +294,7 b' def _search(web):' | |||||
294 |
|
294 | |||
295 | for ctx in searchfunc[0](funcarg): |
|
295 | for ctx in searchfunc[0](funcarg): | |
296 | count += 1 |
|
296 | count += 1 | |
297 |
n = ctx |
|
297 | n = scmutil.binnode(ctx) | |
298 | showtags = webutil.showtag(web.repo, 'changelogtag', n) |
|
298 | showtags = webutil.showtag(web.repo, 'changelogtag', n) | |
299 | files = webutil.listfilediffs(ctx.files(), n, web.maxfiles) |
|
299 | files = webutil.listfilediffs(ctx.files(), n, web.maxfiles) | |
300 |
|
300 | |||
@@ -521,7 +521,7 b' def manifest(web):' | |||||
521 | symrev = 'tip' |
|
521 | symrev = 'tip' | |
522 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) |
|
522 | path = webutil.cleanpath(web.repo, web.req.qsparams.get('file', '')) | |
523 | mf = ctx.manifest() |
|
523 | mf = ctx.manifest() | |
524 |
node = ctx |
|
524 | node = scmutil.binnode(ctx) | |
525 |
|
525 | |||
526 | files = {} |
|
526 | files = {} | |
527 | dirs = {} |
|
527 | dirs = {} | |
@@ -868,7 +868,7 b' def comparison(web):' | |||||
868 | leftrev = parent.rev() |
|
868 | leftrev = parent.rev() | |
869 | leftnode = parent.node() |
|
869 | leftnode = parent.node() | |
870 | rightrev = ctx.rev() |
|
870 | rightrev = ctx.rev() | |
871 |
rightnode = ctx |
|
871 | rightnode = scmutil.binnode(ctx) | |
872 | if path in ctx: |
|
872 | if path in ctx: | |
873 | fctx = ctx[path] |
|
873 | fctx = ctx[path] | |
874 | rightlines = filelines(fctx) |
|
874 | rightlines = filelines(fctx) |
@@ -416,7 +416,7 b' def _kwfunc(f):' | |||||
416 | return f |
|
416 | return f | |
417 |
|
417 | |||
418 | def commonentry(repo, ctx): |
|
418 | def commonentry(repo, ctx): | |
419 |
node = ctx |
|
419 | node = scmutil.binnode(ctx) | |
420 | return { |
|
420 | return { | |
421 | # TODO: perhaps ctx.changectx() should be assigned if ctx is a |
|
421 | # TODO: perhaps ctx.changectx() should be assigned if ctx is a | |
422 | # filectx, but I'm not pretty sure if that would always work because |
|
422 | # filectx, but I'm not pretty sure if that would always work because | |
@@ -451,7 +451,7 b' def changelistentry(web, ctx):' | |||||
451 | ''' |
|
451 | ''' | |
452 | repo = web.repo |
|
452 | repo = web.repo | |
453 | rev = ctx.rev() |
|
453 | rev = ctx.rev() | |
454 |
n = ctx |
|
454 | n = scmutil.binnode(ctx) | |
455 | showtags = showtag(repo, 'changelogtag', n) |
|
455 | showtags = showtag(repo, 'changelogtag', n) | |
456 | files = listfilediffs(ctx.files(), n, web.maxfiles) |
|
456 | files = listfilediffs(ctx.files(), n, web.maxfiles) | |
457 |
|
457 | |||
@@ -485,7 +485,7 b' def symrevorshortnode(req, ctx):' | |||||
485 | if 'node' in req.qsparams: |
|
485 | if 'node' in req.qsparams: | |
486 | return templatefilters.revescape(req.qsparams['node']) |
|
486 | return templatefilters.revescape(req.qsparams['node']) | |
487 | else: |
|
487 | else: | |
488 |
return short(ctx |
|
488 | return short(scmutil.binnode(ctx)) | |
489 |
|
489 | |||
490 | def _listfilesgen(context, ctx, stripecount): |
|
490 | def _listfilesgen(context, ctx, stripecount): | |
491 | parity = paritygen(stripecount) |
|
491 | parity = paritygen(stripecount) | |
@@ -501,8 +501,9 b' def _listfilesgen(context, ctx, stripeco' | |||||
501 | def changesetentry(web, ctx): |
|
501 | def changesetentry(web, ctx): | |
502 | '''Obtain a dictionary to be used to render the "changeset" template.''' |
|
502 | '''Obtain a dictionary to be used to render the "changeset" template.''' | |
503 |
|
503 | |||
504 |
showtags = showtag(web.repo, 'changesettag', ctx |
|
504 | showtags = showtag(web.repo, 'changesettag', scmutil.binnode(ctx)) | |
505 |
showbookmarks = showbookmark(web.repo, 'changesetbookmark', |
|
505 | showbookmarks = showbookmark(web.repo, 'changesetbookmark', | |
|
506 | scmutil.binnode(ctx)) | |||
506 | showbranch = nodebranchnodefault(ctx) |
|
507 | showbranch = nodebranchnodefault(ctx) | |
507 |
|
508 | |||
508 | basectx = basechangectx(web.repo, web.req) |
|
509 | basectx = basechangectx(web.repo, web.req) |
General Comments 0
You need to be logged in to leave comments.
Login now