Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 6682:4fa7701918ed
Fix python2.3 incompatibility introduced by a2b13cac0922.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 16 Jun 2008 11:50:33 +0200 |
parents | a2b13cac0922 |
children | bb1575f74f27 88804fad71bc |
comparison
equal
deleted
inserted
replaced
6681:6a6ef726a2b3 | 6682:4fa7701918ed |
---|---|
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) |