~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-05 17:21:36 UTC
  • mfrom: (3872.3.3 backup-bzrdir)
  • Revision ID: pqm@pqm.ubuntu.com-20081205172136-vccv8ynqac6sxr5s
(Jelmer) Add BzrDir.backup_bzrdir().

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