hgweb: limit branches shown on summary page to 10
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 01 Sep 2015 23:35:06 +0800
changeset 26131 0a9009d56fea
parent 26130 e466c15597a3
child 26132 9df8c729e2e7
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.
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',