Show More
@@ -509,15 +509,15 b' def changesetentry(web, ctx):' | |||
|
509 | 509 | archives=web.archivelist(ctx.hex()), |
|
510 | 510 | **pycompat.strkwargs(commonentry(web.repo, ctx))) |
|
511 | 511 | |
|
512 |
def _listfilediffsgen(context |
|
|
512 | def _listfilediffsgen(context, files, node, max): | |
|
513 | 513 | for f in files[:max]: |
|
514 |
yield |
|
|
514 | yield context.process('filedifflink', {'node': hex(node), 'file': f}) | |
|
515 | 515 | if len(files) > max: |
|
516 |
yield |
|
|
516 | yield context.process('fileellipses', {}) | |
|
517 | 517 | |
|
518 | 518 | def listfilediffs(tmpl, files, node, max): |
|
519 | 519 | return templateutil.mappedgenerator(_listfilediffsgen, |
|
520 |
args=( |
|
|
520 | args=(files, node, max)) | |
|
521 | 521 | |
|
522 | 522 | def diffs(web, ctx, basectx, files, style, linerange=None, |
|
523 | 523 | lineidprefix=''): |
General Comments 0
You need to be logged in to leave comments.
Login now