~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: 2010-02-10 03:06:24 UTC
  • mfrom: (4961.2.22 progress)
  • Revision ID: pqm@pqm.ubuntu.com-20100210030624-wnjdp7yy7zb8vu7u
(mbp) Remove passing-around of ProgressBars

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        if self.bzrdir.root_transport.is_readonly():
36
36
            raise errors.UpgradeReadonly
37
37
        self.transport = self.bzrdir.root_transport
38
 
        self.pb = ui.ui_factory.nested_progress_bar()
39
 
        try:
40
 
            self.convert()
41
 
        finally:
42
 
            self.pb.finished()
 
38
        self.convert()
43
39
 
44
40
    def convert(self):
45
41
        try:
77
73
        self.bzrdir.backup_bzrdir()
78
74
        while self.bzrdir.needs_format_conversion(format):
79
75
            converter = self.bzrdir._format.get_converter(format)
80
 
            self.bzrdir = converter.convert(self.bzrdir, self.pb)
 
76
            self.bzrdir = converter.convert(self.bzrdir, None)
81
77
        ui.ui_factory.note("finished")
82
78
 
83
79