equal
deleted
inserted
replaced
430 count = 0 |
430 count = 0 |
431 for ctx in sorted(tips, key=sortkey, reverse=True): |
431 for ctx in sorted(tips, key=sortkey, reverse=True): |
432 if limit > 0 and count >= limit: |
432 if limit > 0 and count >= limit: |
433 return |
433 return |
434 count += 1 |
434 count += 1 |
435 if ctx.node() not in heads: |
435 if not web.repo.branchheads(ctx.branch()): |
|
436 status = 'closed' |
|
437 elif ctx.node() not in heads: |
436 status = 'inactive' |
438 status = 'inactive' |
437 elif not web.repo.branchheads(ctx.branch()): |
|
438 status = 'closed' |
|
439 else: |
439 else: |
440 status = 'open' |
440 status = 'open' |
441 yield {'parity': parity.next(), |
441 yield {'parity': parity.next(), |
442 'branch': ctx.branch(), |
442 'branch': ctx.branch(), |
443 'status': status, |
443 'status': status, |