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