equal
deleted
inserted
replaced
1075 hexfunc = fm.hexfunc |
1075 hexfunc = fm.hexfunc |
1076 |
1076 |
1077 allheads = set(repo.heads()) |
1077 allheads = set(repo.heads()) |
1078 branches = [] |
1078 branches = [] |
1079 for tag, heads, tip, isclosed in repo.branchmap().iterbranches(): |
1079 for tag, heads, tip, isclosed in repo.branchmap().iterbranches(): |
1080 isactive = not isclosed and bool(set(heads) & allheads) |
1080 isactive = False |
|
1081 if not isclosed: |
|
1082 openheads = set(repo.branchmap().iteropen(heads)) |
|
1083 isactive = bool(openheads & allheads) |
1081 branches.append((tag, repo[tip], isactive, not isclosed)) |
1084 branches.append((tag, repo[tip], isactive, not isclosed)) |
1082 branches.sort(key=lambda i: (i[2], i[1].rev(), i[0], i[3]), |
1085 branches.sort(key=lambda i: (i[2], i[1].rev(), i[0], i[3]), |
1083 reverse=True) |
1086 reverse=True) |
1084 |
1087 |
1085 for tag, ctx, isactive, isopen in branches: |
1088 for tag, ctx, isactive, isopen in branches: |