Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 6686:bb1575f74f27
merge with crew-stable
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 16 Jun 2008 11:51:19 +0200 |
parents | 3101e30fd762 4fa7701918ed |
children | 1fe6f365df2e |
comparison
equal
deleted
inserted
replaced
6685:76021ec849c8 | 6686:bb1575f74f27 |
---|---|
380 hexfunc = ui.debugflag and hex or short | 380 hexfunc = ui.debugflag and hex or short |
381 activebranches = [util.tolocal(repo.changectx(n).branch()) | 381 activebranches = [util.tolocal(repo.changectx(n).branch()) |
382 for n in repo.heads()] | 382 for n in repo.heads()] |
383 branches = [(tag in activebranches, repo.changelog.rev(node), tag) | 383 branches = [(tag in activebranches, repo.changelog.rev(node), tag) |
384 for tag, node in repo.branchtags().items()] | 384 for tag, node in repo.branchtags().items()] |
385 branches.sort(reverse=True) | 385 branches.sort() |
386 branches.reverse() | |
386 | 387 |
387 for isactive, node, tag in branches: | 388 for isactive, node, tag in branches: |
388 if (not active) or isactive: | 389 if (not active) or isactive: |
389 if ui.quiet: | 390 if ui.quiet: |
390 ui.write("%s\n" % tag) | 391 ui.write("%s\n" % tag) |