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