##// END OF EJS Templates
hgweb: wrap {fentries} and {dentries} of manifest with mappinggenerator...
Yuya Nishihara -
r38073:17f7b443 default
parent child Browse files
Show More
@@ -556,7 +556,7 b' def manifest(web):'
556 556 if mf and not files and not dirs:
557 557 raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
558 558
559 def filelist(**map):
559 def filelist(context):
560 560 for f in sorted(files):
561 561 full = files[f]
562 562
@@ -568,7 +568,7 b' def manifest(web):'
568 568 "size": fctx.size(),
569 569 "permissions": mf.flags(full)}
570 570
571 def dirlist(**map):
571 def dirlist(context):
572 572 for d in sorted(dirs):
573 573
574 574 emptydirs = []
@@ -591,8 +591,8 b' def manifest(web):'
591 591 path=abspath,
592 592 up=webutil.up(abspath),
593 593 upparity=next(parity),
594 fentries=filelist,
595 dentries=dirlist,
594 fentries=templateutil.mappinggenerator(filelist),
595 dentries=templateutil.mappinggenerator(dirlist),
596 596 archives=web.archivelist(hex(node)),
597 597 **pycompat.strkwargs(webutil.commonentry(web.repo, ctx)))
598 598
General Comments 0
You need to be logged in to leave comments. Login now