Show More
@@ -360,19 +360,19 b' def tags(web, req, tmpl):' | |||||
360 |
|
360 | |||
361 | def branches(web, req, tmpl): |
|
361 | def branches(web, req, tmpl): | |
362 | b = web.repo.branchtags() |
|
362 | b = web.repo.branchtags() | |
363 |
|
|
363 | tips = (web.repo[n] for t, n in web.repo.branchtags().iteritems()) | |
364 | parity = paritygen(web.stripecount) |
|
364 | parity = paritygen(web.stripecount) | |
365 |
|
365 | |||
366 | def entries(limit, **map): |
|
366 | def entries(limit, **map): | |
367 | count = 0 |
|
367 | count = 0 | |
368 | for r, n, t in sorted(l): |
|
368 | for ctx in sorted(tips, key=lambda x: x.rev(), reverse=True): | |
369 | if limit > 0 and count >= limit: |
|
369 | if limit > 0 and count >= limit: | |
370 | return |
|
370 | return | |
371 | count += 1 |
|
371 | count += 1 | |
372 | yield {'parity': parity.next(), |
|
372 | yield {'parity': parity.next(), | |
373 | 'branch': t, |
|
373 | 'branch': ctx.branch(), | |
374 |
'node': hex( |
|
374 | 'node': ctx.hex(), | |
375 |
'date': |
|
375 | 'date': ctx.date()} | |
376 |
|
376 | |||
377 | return tmpl('branches', node=hex(web.repo.changelog.tip()), |
|
377 | return tmpl('branches', node=hex(web.repo.changelog.tip()), | |
378 | entries=lambda **x: entries(0, **x), |
|
378 | entries=lambda **x: entries(0, **x), |
General Comments 0
You need to be logged in to leave comments.
Login now