Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 29382:e4b777fe1576
templates: add support for summary webcommand in json style
Change summary webcommand to yield each element of the shortlog instead of the
entire list.
This makes generated json more readable since each entry can be formatted
separately, instead of returning all the shortlog content in a single string.
author | Laura M?dioni <laura.medioni@logilab.fr> |
---|---|
date | Mon, 06 Jun 2016 15:14:11 +0200 |
parents | 4f2f8baba2ff |
children | f694e20193f2 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Jun 03 12:32:42 2016 +0200 +++ b/mercurial/hgweb/webcommands.py Mon Jun 06 15:14:11 2016 +0200 @@ -707,8 +707,8 @@ parity=next(parity), **webutil.commonentry(web.repo, ctx))) - l.reverse() - yield l + for entry in reversed(l): + yield entry tip = web.repo['tip'] count = len(web.repo)