~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2006-05-09 07:09:48 UTC
  • mto: This revision was merged to the branch mainline in revision 1707.
  • Revision ID: mbp@sourcefrog.net-20060509070948-734ebe91f1c96032
Detect terminal width using ioctl

Show diffs side-by-side

added added

removed removed

Lines of Context:
443
443
            return rev.message
444
444
 
445
445
    def show(self, revno, rev, delta):
446
 
        print >> self.to_file, self.log_string(rev, 79) 
 
446
        from bzrlib.osutils import terminal_width
 
447
        print >> self.to_file, self.log_string(rev, terminal_width() - 1) 
447
448
 
448
449
    def log_string(self, rev, max_chars):
449
450
        out = [self.truncate(self.short_committer(rev), 20)]