##// END OF EJS Templates
templatekw: inline getfiles()...
Yuya Nishihara -
r36533:9e3c37c3 default
parent child Browse files
Show More
@@ -216,11 +216,6 b' def _showlist(name, values, mapping, plu'
216 216 if endname in templ:
217 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 219 def getlatesttags(repo, ctx, cache, pattern=None):
225 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 462 def _showfilesbystat(args, name, index):
468 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 467 return showlist(name, files, args, element='file')
471 468
472 469 @templatekeyword('file_adds')
General Comments 0
You need to be logged in to leave comments. Login now