~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-21 15:20:16 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: john@arbash-meinel.com-20051121152016-f53ba54bbbbc4474
Stripping trailing newlines when displaying log messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
386
386
        if not rev.message:
387
387
            print >>to_file,  indent+'  (no message)'
388
388
        else:
389
 
            for l in rev.message.split('\n'):
 
389
            message = rev.message.rstrip('\r\n')
 
390
            for l in message.split('\n'):
390
391
                print >>to_file,  indent+'  ' + l
391
392
 
392
393
 
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