~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset/serializer/v07.py

  • Committer: Aaron Bentley
  • Date: 2006-05-20 19:27:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: aaron.bentley@utoronto.ca-20060520192713-222c31d43523ee8f
Use elipsis to continue long meta lines

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                    raise repr(prop)
73
73
        text = ['=== ']
74
74
        text.append(' // '.join(p_texts))
75
 
        to_file.write(''.join(text).encode('utf-8')+'\n')
 
75
        text_line = ''.join(text).encode('utf-8')
 
76
        available = 79
 
77
        while len(text_line) > available:
 
78
            to_file.write(text_line[:available])
 
79
            text_line = text_line[available:]
 
80
            to_file.write('\n... ')
 
81
            available = 79 - len('... ')
 
82
        to_file.write(text_line+'\n')
76
83
 
77
84
 
78
85
class ChangesetSerializerV07(ChangesetSerializer):