comparison hgext/mq.py @ 11121:d061ef1d781c

mq: make use of output labeling for summary
author Eric Eisner <ede@mit.edu>
date Fri, 07 May 2010 16:51:45 -0400
parents 0bedcbcb3ae2
children 687c7d395f20
comparison
equal deleted inserted replaced
11120:0bedcbcb3ae2 11121:d061ef1d781c
2666 r = orig(ui, repo, *args, **kwargs) 2666 r = orig(ui, repo, *args, **kwargs)
2667 q = repo.mq 2667 q = repo.mq
2668 m = [] 2668 m = []
2669 a, u = len(q.applied), len(q.unapplied(repo)) 2669 a, u = len(q.applied), len(q.unapplied(repo))
2670 if a: 2670 if a:
2671 m.append(_("%d applied") % a) 2671 m.append(ui.label(_("%d applied"), 'qseries.applied') % a)
2672 if u: 2672 if u:
2673 m.append(_("%d unapplied") % u) 2673 m.append(ui.label(_("%d unapplied"), 'qseries.unapplied') % u)
2674 if m: 2674 if m:
2675 ui.write("mq: %s\n" % ', '.join(m)) 2675 ui.write("mq: %s\n" % ', '.join(m))
2676 else: 2676 else:
2677 ui.note(_("mq: (empty queue)\n")) 2677 ui.note(_("mq: (empty queue)\n"))
2678 return r 2678 return r