Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 38172:d32f07069dd1
hgweb: wrap {diffopts} of annotate by hybriddict()
The diffopts here is a plain dict, which should be wrapped by hybriddict.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Apr 2018 20:31:16 +0900 |
parents | 8e9ce73ceb15 |
children | 220058198be6 |
comparison
equal
deleted
inserted
replaced
38171:8e9ce73ceb15 | 38172:d32f07069dd1 |
---|---|
990 path=webutil.up(f), | 990 path=webutil.up(f), |
991 symrev=webutil.symrevorshortnode(web.req, fctx), | 991 symrev=webutil.symrevorshortnode(web.req, fctx), |
992 rename=webutil.renamelink(fctx), | 992 rename=webutil.renamelink(fctx), |
993 permissions=fctx.manifest().flags(f), | 993 permissions=fctx.manifest().flags(f), |
994 ishead=int(ishead), | 994 ishead=int(ishead), |
995 diffopts=diffopts, | 995 diffopts=templateutil.hybriddict(diffopts), |
996 **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) | 996 **pycompat.strkwargs(webutil.commonentry(web.repo, fctx))) |
997 | 997 |
998 @webcommand('filelog') | 998 @webcommand('filelog') |
999 def filelog(web): | 999 def filelog(web): |
1000 """ | 1000 """ |