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