~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-06-24 11:04:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050624110455-b0e54cd5f96691e5
- better quotefn for windows: use doublequotes for strings with 
  strange characters, not backslashes
- new backup_file() routine

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