Show More
@@ -216,11 +216,6 b' def _showlist(name, values, mapping, plu' | |||||
216 | if endname in templ: |
|
216 | if endname in templ: | |
217 | yield templ(endname, **strmapping) |
|
217 | yield templ(endname, **strmapping) | |
218 |
|
218 | |||
219 | def getfiles(repo, ctx, revcache): |
|
|||
220 | if 'files' not in revcache: |
|
|||
221 | revcache['files'] = repo.status(ctx.p1(), ctx)[:3] |
|
|||
222 | return revcache['files'] |
|
|||
223 |
|
||||
224 | def getlatesttags(repo, ctx, cache, pattern=None): |
|
219 | def getlatesttags(repo, ctx, cache, pattern=None): | |
225 | '''return date, distance and name for the latest tag of rev''' |
|
220 | '''return date, distance and name for the latest tag of rev''' | |
226 |
|
221 | |||
@@ -466,7 +461,9 b' def showextras(**args):' | |||||
466 |
|
461 | |||
467 | def _showfilesbystat(args, name, index): |
|
462 | def _showfilesbystat(args, name, index): | |
468 | repo, ctx, revcache = args['repo'], args['ctx'], args['revcache'] |
|
463 | repo, ctx, revcache = args['repo'], args['ctx'], args['revcache'] | |
469 | files = getfiles(repo, ctx, revcache)[index] |
|
464 | if 'files' not in revcache: | |
|
465 | revcache['files'] = repo.status(ctx.p1(), ctx)[:3] | |||
|
466 | files = revcache['files'][index] | |||
470 | return showlist(name, files, args, element='file') |
|
467 | return showlist(name, files, args, element='file') | |
471 |
|
468 | |||
472 | @templatekeyword('file_adds') |
|
469 | @templatekeyword('file_adds') |
General Comments 0
You need to be logged in to leave comments.
Login now