comparison mercurial/hgweb/webcommands.py @ 18478:886936ecc21b stable

hgweb: don't attempt to show hidden bookmarks (issue3774) localrepository._bookmarks is unfiltered, but hgweb gets a filtered repo. This fixes the resulting traceback on the 'bookmarks' page.
author Kevin Bullock <kbullock@ringworld.org>
date Fri, 25 Jan 2013 11:43:54 -0600
parents 010d6d3fcfee
children a58d8936647a
comparison
equal deleted inserted replaced
18477:010d6d3fcfee 18478:886936ecc21b
422 entries=lambda **x: entries(False, False, **x), 422 entries=lambda **x: entries(False, False, **x),
423 entriesnotip=lambda **x: entries(True, False, **x), 423 entriesnotip=lambda **x: entries(True, False, **x),
424 latestentry=lambda **x: entries(True, True, **x)) 424 latestentry=lambda **x: entries(True, True, **x))
425 425
426 def bookmarks(web, req, tmpl): 426 def bookmarks(web, req, tmpl):
427 i = web.repo._bookmarks.items() 427 i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo]
428 parity = paritygen(web.stripecount) 428 parity = paritygen(web.stripecount)
429 429
430 def entries(latestonly, **map): 430 def entries(latestonly, **map):
431 if latestonly: 431 if latestonly:
432 t = [min(i)] 432 t = [min(i)]