Show More
@@ -395,11 +395,9 b' def bookmarks(web, req, tmpl):' | |||||
395 | i = web.repo._bookmarks.items() |
|
395 | i = web.repo._bookmarks.items() | |
396 | parity = paritygen(web.stripecount) |
|
396 | parity = paritygen(web.stripecount) | |
397 |
|
397 | |||
398 |
def entries( |
|
398 | def entries(limit=0, **map): | |
399 | count = 0 |
|
399 | count = 0 | |
400 | for k, n in sorted(i): |
|
400 | for k, n in sorted(i): | |
401 | if notip and k == "tip": |
|
|||
402 | continue |
|
|||
403 | if limit > 0 and count >= limit: |
|
401 | if limit > 0 and count >= limit: | |
404 | continue |
|
402 | continue | |
405 | count = count + 1 |
|
403 | count = count + 1 | |
@@ -410,9 +408,8 b' def bookmarks(web, req, tmpl):' | |||||
410 |
|
408 | |||
411 | return tmpl("bookmarks", |
|
409 | return tmpl("bookmarks", | |
412 | node=hex(web.repo.changelog.tip()), |
|
410 | node=hex(web.repo.changelog.tip()), | |
413 |
entries=lambda **x: entries( |
|
411 | entries=lambda **x: entries(0, **x), | |
414 |
|
|
412 | latestentry=lambda **x: entries(1, **x)) | |
415 | latestentry=lambda **x: entries(True, 1, **x)) |
|
|||
416 |
|
413 | |||
417 | def branches(web, req, tmpl): |
|
414 | def branches(web, req, tmpl): | |
418 | tips = (web.repo[n] for t, n in web.repo.branchtags().iteritems()) |
|
415 | tips = (web.repo[n] for t, n in web.repo.branchtags().iteritems()) |
General Comments 0
You need to be logged in to leave comments.
Login now