equal
deleted
inserted
replaced
391 entriesnotip=lambda **x: entries(True, 0, **x), |
391 entriesnotip=lambda **x: entries(True, 0, **x), |
392 latestentry=lambda **x: entries(True, 1, **x)) |
392 latestentry=lambda **x: entries(True, 1, **x)) |
393 |
393 |
394 def bookmarks(web, req, tmpl): |
394 def bookmarks(web, req, tmpl): |
395 i = web.repo._bookmarks.items() |
395 i = web.repo._bookmarks.items() |
396 i.reverse() |
|
397 parity = paritygen(web.stripecount) |
396 parity = paritygen(web.stripecount) |
398 |
397 |
399 def entries(notip=False, limit=0, **map): |
398 def entries(notip=False, limit=0, **map): |
400 count = 0 |
399 count = 0 |
401 for k, n in i: |
400 for k, n in sorted(i): |
402 if notip and k == "tip": |
401 if notip and k == "tip": |
403 continue |
402 continue |
404 if limit > 0 and count >= limit: |
403 if limit > 0 and count >= limit: |
405 continue |
404 continue |
406 count = count + 1 |
405 count = count + 1 |