~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Mark Hammond
  • Date: 2008-12-28 05:21:23 UTC
  • mfrom: (3920 +trunk)
  • mto: (3932.1.1 prepare-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081228052123-f78xs5sbdkotshwf
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
    def _backup_control_dir(self):
77
77
        self.pb.note('making backup of tree history')
78
 
        self.transport.copy_tree('.bzr', 'backup.bzr')
79
 
        self.pb.note('%s.bzr has been backed up to %sbackup.bzr',
80
 
             self.transport.base,
81
 
             self.transport.base)
 
78
        old_path, new_path = self.bzrdir.backup_bzrdir()
 
79
        self.pb.note('%s has been backed up to %s', old_path, new_path)
82
80
        self.pb.note('if conversion fails, you can move this directory back to .bzr')
83
81
        self.pb.note('if it succeeds, you can remove this directory if you wish')
84
82