~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-30 15:43:57 UTC
  • mto: (1185.50.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1518.
  • Revision ID: john@arbash-meinel.com-20051130154357-614206b3a7b83cd0
Refactored bzrlib/ui.py into a module with the possibility for multiple ui forms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
        if not rev.message:
385
385
            print >>to_file,  indent+'  (no message)'
386
386
        else:
387
 
            for l in rev.message.split('\n'):
 
387
            message = rev.message.rstrip('\r\n')
 
388
            for l in message.split('\n'):
388
389
                print >>to_file,  indent+'  ' + l
389
390
        if delta != None:
390
391
            delta.show(to_file, self.show_ids)
406
407
        if not rev.message:
407
408
            print >>to_file,  '      (no message)'
408
409
        else:
409
 
            for l in rev.message.split('\n'):
 
410
            message = rev.message.rstrip('\r\n')
 
411
            for l in message.split('\n'):
410
412
                print >>to_file,  '      ' + l
411
413
 
412
414
        # TODO: Why not show the modified files in a shorter form as
413
415
        # well? rewrap them single lines of appropriate length
414
416
        if delta != None:
415
417
            delta.show(to_file, self.show_ids)
416
 
        print
 
418
        print >>to_file, ''
417
419
 
418
420
class LineLogFormatter(LogFormatter):
419
421
    def truncate(self, str, max_len):