~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-06-28 05:33:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050628053340-ea73b03fbcde9c46
- Remove XMLMixin class in favour of simple pack_xml, unpack_xml functions
  called as needed.  

- Avoid importing xml and ElementTree library unless needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                # there should be *some* way of making old entries have
93
93
                # the full meta information.
94
94
                import tempfile, os, errno
 
95
                from bzrlib.xml import pack_xml
 
96
                
95
97
                rev_tmp = tempfile.TemporaryFile()
96
 
                rev.write_xml(rev_tmp)
 
98
                pack_xml(rev, rev_tmp)
97
99
                rev_tmp.seek(0)
98
100
 
99
101
                tmpfd, tmp_path = tempfile.mkstemp(prefix=rev_id, suffix='.gz',