~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-07-22 23:43:26 UTC
  • Revision ID: mbp@sourcefrog.net-20050722234326-13104af9d837ed2b
todo

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',