hgext/mq.py
changeset 11327 6c469f2f9f12
parent 11321 40c06bbf58be
child 11365 c3d7daa0928e
equal deleted inserted replaced
11326:c89309fa907d 11327:6c469f2f9f12
  1420             if pfx:
  1420             if pfx:
  1421                 self.ui.write(pfx)
  1421                 self.ui.write(pfx)
  1422             if summary:
  1422             if summary:
  1423                 ph = patchheader(self.join(patchname), self.plainmode)
  1423                 ph = patchheader(self.join(patchname), self.plainmode)
  1424                 msg = ph.message and ph.message[0] or ''
  1424                 msg = ph.message and ph.message[0] or ''
  1425                 if not self.ui.plain():
  1425                 if self.ui.formatted():
  1426                     width = util.termwidth() - len(pfx) - len(patchname) - 2
  1426                     width = util.termwidth() - len(pfx) - len(patchname) - 2
  1427                     if width > 0:
  1427                     if width > 0:
  1428                         msg = util.ellipsis(msg, width)
  1428                         msg = util.ellipsis(msg, width)
  1429                     else:
  1429                     else:
  1430                         msg = ''
  1430                         msg = ''