equal
deleted
inserted
replaced
378 hexfunc = ui.debugflag and hex or short |
378 hexfunc = ui.debugflag and hex or short |
379 activebranches = [util.tolocal(repo.changectx(n).branch()) |
379 activebranches = [util.tolocal(repo.changectx(n).branch()) |
380 for n in repo.heads()] |
380 for n in repo.heads()] |
381 branches = [(tag in activebranches, repo.changelog.rev(node), tag) |
381 branches = [(tag in activebranches, repo.changelog.rev(node), tag) |
382 for tag, node in repo.branchtags().items()] |
382 for tag, node in repo.branchtags().items()] |
383 branches.sort(reverse=True) |
383 branches.sort() |
|
384 branches.reverse() |
384 |
385 |
385 for isactive, node, tag in branches: |
386 for isactive, node, tag in branches: |
386 if (not active) or isactive: |
387 if (not active) or isactive: |
387 if ui.quiet: |
388 if ui.quiet: |
388 ui.write("%s\n" % tag) |
389 ui.write("%s\n" % tag) |