~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-19 14:45:40 UTC
  • mfrom: (5725.1.4 log-wide-lines)
  • Revision ID: pqm@pqm.ubuntu.com-20110519144540-rdtq66i05j07d8sb
(mbp) In log output,
 allow the author field width to grow as the line gets longer. (Neil
 Martinsen-Burrell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1743
1743
        if revno:
1744
1744
            # show revno only when is not None
1745
1745
            out.append("%s:" % revno)
1746
 
        out.append(self.truncate(self.short_author(rev), 20))
 
1746
        if max_chars is not None:
 
1747
            out.append(self.truncate(self.short_author(rev), (max_chars+3)/4))
 
1748
        else:
 
1749
            out.append(self.short_author(rev))
1747
1750
        out.append(self.date_string(rev))
1748
1751
        if len(rev.parent_ids) > 1:
1749
1752
            out.append('[merge]')