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.
--- 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',