~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: 2009-06-11 05:22:11 UTC
  • mfrom: (4427.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090611052211-b6b2pu471mdja7zz
(igc) fix branch & status content filtering issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
            branch = self.bzrdir.open_branch()
47
47
            if branch.bzrdir.root_transport.base != \
48
48
                self.bzrdir.root_transport.base:
49
 
                ui.ui_factory.note("This is a checkout. The branch (%s) needs to be "
50
 
                             "upgraded separately." %
 
49
                self.pb.note("This is a checkout. The branch (%s) needs to be "
 
50
                             "upgraded separately.",
51
51
                             branch.bzrdir.root_transport.base)
52
52
            del branch
53
53
        except (errors.NotBranchError, errors.IncompatibleRepositories):
72
72
            raise errors.BzrError("cannot upgrade from bzrdir format %s" %
73
73
                           self.bzrdir._format)
74
74
        self.bzrdir.check_conversion_target(format)
75
 
        ui.ui_factory.note('starting upgrade of %s' % self.transport.base)
76
 
 
 
75
        self.pb.note('starting upgrade of %s', self.transport.base)
77
76
        self.bzrdir.backup_bzrdir()
78
77
        while self.bzrdir.needs_format_conversion(format):
79
78
            converter = self.bzrdir._format.get_converter(format)
80
79
            self.bzrdir = converter.convert(self.bzrdir, self.pb)
81
 
        ui.ui_factory.note("finished")
 
80
        self.pb.note("finished")
82
81
 
83
82
 
84
83
def upgrade(url, format=None):