~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weavefile.py

  • Committer: Blake Winton
  • Date: 2007-10-16 17:37:43 UTC
  • mto: This revision was merged to the branch mainline in revision 2921.
  • Revision ID: bwinton@latte.ca-20071016173743-rbozxk906e8cbm9x
Implemented suggestions from John Arbash Meinel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
def write_weave_v5(weave, f):
55
55
    """Write weave to file f."""
56
 
    f.write(FORMAT_1 + ' ')
 
56
    f.write(FORMAT_1)
57
57
 
58
58
    for version, included in enumerate(weave._parents):
59
59
        if included:
60
60
            # mininc = weave.minimal_parents(version)
61
61
            mininc = included
62
62
            f.write('i ')
63
 
            for i in mininc:
64
 
                f.write(i + ' ')
 
63
            f.write(' '.join(mininc))
65
64
            f.write('\n')
66
65
        else:
67
66
            f.write('i\n')