changeset 26131:0a9009d56fea

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.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 01 Sep 2015 23:35:06 +0800
parents e466c15597a3
children 9df8c729e2e7
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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',