comparison mercurial/hgweb/webcommands.py @ 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 6defc74f3066
comparison
equal deleted inserted replaced
26130:e466c15597a3 26131:0a9009d56fea
722 desc=web.config("web", "description", "unknown"), 722 desc=web.config("web", "description", "unknown"),
723 owner=get_contact(web.config) or "unknown", 723 owner=get_contact(web.config) or "unknown",
724 lastchange=tip.date(), 724 lastchange=tip.date(),
725 tags=tagentries, 725 tags=tagentries,
726 bookmarks=bookmarks, 726 bookmarks=bookmarks,
727 branches=webutil.branchentries(web.repo, web.stripecount), 727 branches=webutil.branchentries(web.repo, web.stripecount, 10),
728 shortlog=changelist, 728 shortlog=changelist,
729 node=tip.hex(), 729 node=tip.hex(),
730 symrev='tip', 730 symrev='tip',
731 archives=web.archivelist("tip")) 731 archives=web.archivelist("tip"))
732 732