~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-06-22 06:37:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050622063743-e395f04c4db8977f
- move old blackbox code from testbzr into bzrlib.selftest.blackbox

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
 
                
97
95
                rev_tmp = tempfile.TemporaryFile()
98
 
                pack_xml(rev, rev_tmp)
 
96
                rev.write_xml(rev_tmp)
99
97
                rev_tmp.seek(0)
100
98
 
101
99
                tmpfd, tmp_path = tempfile.mkstemp(prefix=rev_id, suffix='.gz',