mercurial/commands.py
changeset 6682 4fa7701918ed
parent 6631 a2b13cac0922
child 6686 bb1575f74f27
child 6814 88804fad71bc
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)