Show More
@@ -151,7 +151,7 b' def _filerevision(web, req, tmpl, fctx):' | |||||
151 | rename=webutil.renamelink(fctx), |
|
151 | rename=webutil.renamelink(fctx), | |
152 | permissions=fctx.manifest().flags(f), |
|
152 | permissions=fctx.manifest().flags(f), | |
153 | ishead=int(ishead), |
|
153 | ishead=int(ishead), | |
154 | **webutil.commonentry(web.repo, fctx)) |
|
154 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
155 |
|
155 | |||
156 | @webcommand('file') |
|
156 | @webcommand('file') | |
157 | def file(web, req, tmpl): |
|
157 | def file(web, req, tmpl): | |
@@ -284,7 +284,7 b' def _search(web, req, tmpl):' | |||||
284 | parity=next(parity), |
|
284 | parity=next(parity), | |
285 | changelogtag=showtags, |
|
285 | changelogtag=showtags, | |
286 | files=files, |
|
286 | files=files, | |
287 | **webutil.commonentry(web.repo, ctx)) |
|
287 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
288 |
|
288 | |||
289 | if count >= revcount: |
|
289 | if count >= revcount: | |
290 | break |
|
290 | break | |
@@ -708,7 +708,7 b' def summary(web, req, tmpl):' | |||||
708 | l.append(tmpl( |
|
708 | l.append(tmpl( | |
709 | 'shortlogentry', |
|
709 | 'shortlogentry', | |
710 | parity=next(parity), |
|
710 | parity=next(parity), | |
711 | **webutil.commonentry(web.repo, ctx))) |
|
711 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx)))) | |
712 |
|
712 | |||
713 | for entry in reversed(l): |
|
713 | for entry in reversed(l): | |
714 | yield entry |
|
714 | yield entry | |
@@ -777,7 +777,7 b' def filediff(web, req, tmpl):' | |||||
777 | symrev=webutil.symrevorshortnode(req, ctx), |
|
777 | symrev=webutil.symrevorshortnode(req, ctx), | |
778 | rename=rename, |
|
778 | rename=rename, | |
779 | diff=diffs, |
|
779 | diff=diffs, | |
780 | **webutil.commonentry(web.repo, ctx)) |
|
780 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
781 |
|
781 | |||
782 | diff = webcommand('diff')(filediff) |
|
782 | diff = webcommand('diff')(filediff) | |
783 |
|
783 | |||
@@ -852,7 +852,7 b' def comparison(web, req, tmpl):' | |||||
852 | rightrev=rightrev, |
|
852 | rightrev=rightrev, | |
853 | rightnode=hex(rightnode), |
|
853 | rightnode=hex(rightnode), | |
854 | comparison=comparison, |
|
854 | comparison=comparison, | |
855 | **webutil.commonentry(web.repo, ctx)) |
|
855 | **pycompat.strkwargs(webutil.commonentry(web.repo, ctx))) | |
856 |
|
856 | |||
857 | @webcommand('annotate') |
|
857 | @webcommand('annotate') | |
858 | def annotate(web, req, tmpl): |
|
858 | def annotate(web, req, tmpl): | |
@@ -943,7 +943,7 b' def annotate(web, req, tmpl):' | |||||
943 | permissions=fctx.manifest().flags(f), |
|
943 | permissions=fctx.manifest().flags(f), | |
944 | ishead=int(ishead), |
|
944 | ishead=int(ishead), | |
945 | diffopts=diffopts, |
|
945 | diffopts=diffopts, | |
946 | **webutil.commonentry(web.repo, fctx)) |
|
946 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
947 |
|
947 | |||
948 | @webcommand('filelog') |
|
948 | @webcommand('filelog') | |
949 | def filelog(web, req, tmpl): |
|
949 | def filelog(web, req, tmpl): | |
@@ -1044,7 +1044,7 b' def filelog(web, req, tmpl):' | |||||
1044 | file=path, |
|
1044 | file=path, | |
1045 | diff=diffs, |
|
1045 | diff=diffs, | |
1046 | linerange=webutil.formatlinerange(*lr), |
|
1046 | linerange=webutil.formatlinerange(*lr), | |
1047 | **webutil.commonentry(repo, c))) |
|
1047 | **pycompat.strkwargs(webutil.commonentry(repo, c)))) | |
1048 | if i == revcount: |
|
1048 | if i == revcount: | |
1049 | break |
|
1049 | break | |
1050 | lessvars['linerange'] = webutil.formatlinerange(*lrange) |
|
1050 | lessvars['linerange'] = webutil.formatlinerange(*lrange) | |
@@ -1061,7 +1061,7 b' def filelog(web, req, tmpl):' | |||||
1061 | file=f, |
|
1061 | file=f, | |
1062 | diff=diffs, |
|
1062 | diff=diffs, | |
1063 | rename=webutil.renamelink(iterfctx), |
|
1063 | rename=webutil.renamelink(iterfctx), | |
1064 | **webutil.commonentry(repo, iterfctx))) |
|
1064 | **pycompat.strkwargs(webutil.commonentry(repo, iterfctx)))) | |
1065 | entries.reverse() |
|
1065 | entries.reverse() | |
1066 | revnav = webutil.filerevnav(web.repo, fctx.path()) |
|
1066 | revnav = webutil.filerevnav(web.repo, fctx.path()) | |
1067 | nav = revnav.gen(end - 1, revcount, count) |
|
1067 | nav = revnav.gen(end - 1, revcount, count) | |
@@ -1080,7 +1080,7 b' def filelog(web, req, tmpl):' | |||||
1080 | revcount=revcount, |
|
1080 | revcount=revcount, | |
1081 | morevars=morevars, |
|
1081 | morevars=morevars, | |
1082 | lessvars=lessvars, |
|
1082 | lessvars=lessvars, | |
1083 | **webutil.commonentry(web.repo, fctx)) |
|
1083 | **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | |
1084 |
|
1084 | |||
1085 | @webcommand('archive') |
|
1085 | @webcommand('archive') | |
1086 | def archive(web, req, tmpl): |
|
1086 | def archive(web, req, tmpl): |
@@ -449,7 +449,7 b' def changesetentry(web, req, tmpl, ctx):' | |||||
449 | diffsummary=lambda **x: diffsummary(diffstatsgen), |
|
449 | diffsummary=lambda **x: diffsummary(diffstatsgen), | |
450 | diffstat=diffstats, |
|
450 | diffstat=diffstats, | |
451 | archives=web.archivelist(ctx.hex()), |
|
451 | archives=web.archivelist(ctx.hex()), | |
452 | **commonentry(web.repo, ctx)) |
|
452 | **pycompat.strkwargs(commonentry(web.repo, ctx))) | |
453 |
|
453 | |||
454 | def listfilediffs(tmpl, files, node, max): |
|
454 | def listfilediffs(tmpl, files, node, max): | |
455 | for f in files[:max]: |
|
455 | for f in files[:max]: |
General Comments 0
You need to be logged in to leave comments.
Login now