~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 08:00:35 UTC
  • Revision ID: mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9
- start splitting code for xml (de)serialization away from objects
  preparatory to supporting multiple formats by a single library

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
 
67
    from bzrlib.xml import pack_xml, serializer_v4
68
68
 
69
69
    branch.lock_write()
70
70
 
121
121
        inv_id = rev_id
122
122
 
123
123
        inv_tmp = tempfile.TemporaryFile()
124
 
        pack_xml(new_inv, inv_tmp)
 
124
        
 
125
        serializer_v4.write_inventory(new_inv, inv_tmp)
125
126
        inv_tmp.seek(0)
126
127
        branch.inventory_store.add(inv_tmp, inv_id)
127
128
        mutter('new inventory_id is {%s}' % inv_id)