Show More
@@ -537,18 +537,18 b' def branches(web, req, tmpl):' | |||
|
537 | 537 | tips = [] |
|
538 | 538 | heads = web.repo.heads() |
|
539 | 539 | parity = paritygen(web.stripecount) |
|
540 |
sortkey = lambda |
|
|
540 | sortkey = lambda item: (not item[1], item[0].rev()) | |
|
541 | 541 | |
|
542 | 542 | def entries(limit, **map): |
|
543 | 543 | count = 0 |
|
544 | 544 | if not tips: |
|
545 |
for t, |
|
|
546 |
tips.append(web.repo[ |
|
|
547 | for ctx in sorted(tips, key=sortkey, reverse=True): | |
|
545 | for tag, hs, tip, closed in web.repo.branchmap().iterbranches(): | |
|
546 | tips.append((web.repo[tip], closed)) | |
|
547 | for ctx, closed in sorted(tips, key=sortkey, reverse=True): | |
|
548 | 548 | if limit > 0 and count >= limit: |
|
549 | 549 | return |
|
550 | 550 | count += 1 |
|
551 | if not web.repo.branchheads(ctx.branch()): | |
|
551 | if closed: | |
|
552 | 552 | status = 'closed' |
|
553 | 553 | elif ctx.node() not in heads: |
|
554 | 554 | status = 'inactive' |
General Comments 0
You need to be logged in to leave comments.
Login now