~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-10-04 11:35:25 UTC
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1403.
  • Revision ID: mbp@sourcefrog.net-20051004113525-9bb61f1b8bd7e158
- upgrade should use ui_factory, not make a progress bar directly

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
from bzrlib.revfile import Revfile
90
90
from bzrlib.weave import Weave
91
91
from bzrlib.weavefile import read_weave, write_weave
92
 
from bzrlib.progress import ProgressBar
 
92
from bzrlib.ui import ui_factory
93
93
from bzrlib.atomicfile import AtomicFile
94
94
from bzrlib.xml4 import serializer_v4
95
95
from bzrlib.xml5 import serializer_v5
115
115
        self._backup_control_dir()
116
116
        note('starting upgrade')
117
117
        note('note: upgrade may be faster if all store files are ungzipped first')
118
 
        self.pb = ProgressBar()
 
118
        self.pb = ui_factory.progress_bar()
119
119
        if not os.path.isdir(self.base + '/.bzr/weaves'):
120
120
            os.mkdir(self.base + '/.bzr/weaves')
121
121
        self.inv_weave = Weave('inventory')