# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1271347948 -7200 # Node ID 29c39fe2491bdf99fafa360846739263e5dd8e19 # Parent 75101b1e63024177bd10af34f946a9935459a0e7 mq: only highlight/label patch name for qseries. Restore the behaviour introduced in e37e9904bf10, which was accidentally removed when labelling was introduced in 717c35d55fb3. diff -r 75101b1e6302 -r 29c39fe2491b hgext/mq.py --- a/hgext/mq.py Fri Apr 16 14:30:13 2010 +0200 +++ b/hgext/mq.py Thu Apr 15 18:12:28 2010 +0200 @@ -1415,6 +1415,8 @@ def qseries(self, repo, missing=None, start=0, length=None, status=None, summary=False): def displayname(pfx, patchname, state): + if pfx: + self.ui.write(pfx) if summary: ph = patchheader(self.join(patchname), self.plainmode) msg = ph.message and ph.message[0] or '' @@ -1424,10 +1426,12 @@ msg = util.ellipsis(msg, width) else: msg = '' - msg = "%s%s: %s" % (pfx, patchname, msg) + self.ui.write(patchname, label='qseries.' + state) + self.ui.write(': ') + self.ui.write(msg, label='qseries.message.' + state) else: - msg = pfx + patchname - self.ui.write(msg + '\n', label='qseries.' + state) + self.ui.write(patchname, label='qseries.' + state) + self.ui.write('\n') applied = set([p.name for p in self.applied]) if length is None: diff -r 75101b1e6302 -r 29c39fe2491b tests/test-mq-guards.out --- a/tests/test-mq-guards.out Fri Apr 16 14:30:13 2010 +0200 +++ b/tests/test-mq-guards.out Thu Apr 15 18:12:28 2010 +0200 @@ -131,10 +131,10 @@ 2 A c.patch 3 U d.patch % qseries again, but with color -0 G new.patch -1 G b.patch -2 A c.patch -3 U d.patch +0 G new.patch +1 G b.patch +2 A c.patch +3 U d.patch % new.patch, b.patch: Guarded. c.patch: Applied. d.patch: Guarded. 0 G new.patch 1 G b.patch