1413 return unapplied |
1413 return unapplied |
1414 |
1414 |
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 '' |
1421 if self.ui.interactive(): |
1423 if self.ui.interactive(): |
1422 width = util.termwidth() - len(pfx) - len(patchname) - 2 |
1424 width = util.termwidth() - len(pfx) - len(patchname) - 2 |
1423 if width > 0: |
1425 if width > 0: |
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(msg + '\n', label='qseries.' + state) |
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: |
1434 length = len(self.series) - start |
1438 length = len(self.series) - start |
1435 if not missing: |
1439 if not missing: |