mercurial/hgweb/webcommands.py
branchstable
changeset 14771 0cc66f13bea0
parent 14570 9f908ef5a595
child 15004 d06b9c55ddab
equal deleted inserted replaced
14770:95a8c0f5dd3f 14771:0cc66f13bea0
   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,