Show More
@@ -1415,6 +1415,8 b' class queue(object):' | |||||
1415 | def qseries(self, repo, missing=None, start=0, length=None, status=None, |
|
1415 | def qseries(self, repo, missing=None, start=0, length=None, status=None, | |
1416 | summary=False): |
|
1416 | summary=False): | |
1417 | def displayname(pfx, patchname, state): |
|
1417 | def displayname(pfx, patchname, state): | |
|
1418 | if pfx: | |||
|
1419 | self.ui.write(pfx) | |||
1418 | if summary: |
|
1420 | if summary: | |
1419 | ph = patchheader(self.join(patchname), self.plainmode) |
|
1421 | ph = patchheader(self.join(patchname), self.plainmode) | |
1420 | msg = ph.message and ph.message[0] or '' |
|
1422 | msg = ph.message and ph.message[0] or '' | |
@@ -1424,10 +1426,12 b' class queue(object):' | |||||
1424 | msg = util.ellipsis(msg, width) |
|
1426 | msg = util.ellipsis(msg, width) | |
1425 | else: |
|
1427 | else: | |
1426 | msg = '' |
|
1428 | msg = '' | |
1427 | msg = "%s%s: %s" % (pfx, patchname, msg) |
|
1429 | self.ui.write(patchname, label='qseries.' + state) | |
|
1430 | self.ui.write(': ') | |||
|
1431 | self.ui.write(msg, label='qseries.message.' + state) | |||
1428 | else: |
|
1432 | else: | |
1429 | msg = pfx + patchname |
|
1433 | self.ui.write(patchname, label='qseries.' + state) | |
1430 |
self.ui.write( |
|
1434 | self.ui.write('\n') | |
1431 |
|
1435 | |||
1432 | applied = set([p.name for p in self.applied]) |
|
1436 | applied = set([p.name for p in self.applied]) | |
1433 | if length is None: |
|
1437 | if length is None: |
@@ -131,10 +131,10 b' 1 G b.patch' | |||||
131 | 2 A c.patch |
|
131 | 2 A c.patch | |
132 | 3 U d.patch |
|
132 | 3 U d.patch | |
133 | % qseries again, but with color |
|
133 | % qseries again, but with color | |
134 |
[0;30;1m |
|
134 | 0 G [0;30;1mnew.patch[0m | |
135 |
[0;30;1m |
|
135 | 1 G [0;30;1mb.patch[0m | |
136 |
[0;34;1;4m |
|
136 | 2 A [0;34;1;4mc.patch[0m | |
137 |
[0;30;1m |
|
137 | 3 U [0;30;1md.patch[0m | |
138 | % new.patch, b.patch: Guarded. c.patch: Applied. d.patch: Guarded. |
|
138 | % new.patch, b.patch: Guarded. c.patch: Applied. d.patch: Guarded. | |
139 | 0 G new.patch |
|
139 | 0 G new.patch | |
140 | 1 G b.patch |
|
140 | 1 G b.patch |
General Comments 0
You need to be logged in to leave comments.
Login now