# HG changeset patch # User Anton Shestakov # Date 1441121706 -28800 # Node ID 0a9009d56feaea3fbd7c5c5cede289c948dbe456 # Parent e466c15597a34d2a3edc00649f01601cbb72240c hgweb: limit branches shown on summary page to 10 Tags and bookmarks on summary page are already limited to 10, let's limit branches as well. Each of the blocks (tags, bookmarks, branches) currently has a link to the full list. diff -r e466c15597a3 -r 0a9009d56fea mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Sep 01 23:29:30 2015 +0800 +++ b/mercurial/hgweb/webcommands.py Tue Sep 01 23:35:06 2015 +0800 @@ -724,7 +724,7 @@ lastchange=tip.date(), tags=tagentries, bookmarks=bookmarks, - branches=webutil.branchentries(web.repo, web.stripecount), + branches=webutil.branchentries(web.repo, web.stripecount, 10), shortlog=changelist, node=tip.hex(), symrev='tip',