Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webutil.py @ 36434:1fb9e01328e4
py3: use pycompat.strkwargs to convert kwargs keys to str
Differential Revision: https://phab.mercurial-scm.org/D2452
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 26 Feb 2018 16:16:37 +0530 |
parents | af0a19d8812b |
children | 7937850a523d |
comparison
equal
deleted
inserted
replaced
36433:433cfad4bc46 | 36434:1fb9e01328e4 |
---|---|
447 changesetbranch=showbranch, | 447 changesetbranch=showbranch, |
448 files=files, | 448 files=files, |
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]: |
456 yield tmpl('filedifflink', node=hex(node), file=f) | 456 yield tmpl('filedifflink', node=hex(node), file=f) |
457 if len(files) > max: | 457 if len(files) > max: |