~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Martin Pool
  • Date: 2005-09-05 09:27:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050905092711-f9f5bded3fd82605
- more disentangling of xml storage format from objects

- remove pack_xml and unpack_xml function in favor of 
  serializer object

- test unpacking canned revision xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    from bzrlib.errors import BzrError, PointlessCommit
65
65
    from bzrlib.revision import Revision, RevisionReference
66
66
    from bzrlib.trace import mutter, note
67
 
    from bzrlib.xml import pack_xml, serializer_v4
 
67
    from bzrlib.xml import serializer_v4
68
68
 
69
69
    branch.lock_write()
70
70
 
161
161
            rev.parents.append(RevisionReference(merge_rev))            
162
162
 
163
163
        rev_tmp = tempfile.TemporaryFile()
164
 
        pack_xml(rev, rev_tmp)
 
164
        serializer_v4.write_revision(rev, rev_tmp)
165
165
        rev_tmp.seek(0)
166
166
        branch.revision_store.add(rev_tmp, rev_id)
167
167
        mutter("new revision_id is {%s}" % rev_id)