~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-09-22 12:11:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050922121116-8b8c80c401a0a4fa
- upgrade fixes regarding what files we expect to be present or not

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        note('starting upgrade of %s', self.base)
112
112
        self._backup_control_dir()
113
113
        note('starting upgrade')
114
 
        note('note: upgrade will be faster if all store files are ungzipped first')
 
114
        note('note: upgrade may be faster if all store files are ungzipped first')
115
115
        self.pb = ProgressBar()
116
116
        if not os.path.isdir(self.base + '/.bzr/weaves'):
117
117
            os.mkdir(self.base + '/.bzr/weaves')
168
168
            p = self.branch.controlfilename(n)
169
169
            if not os.path.exists(p):
170
170
                continue
171
 
            assert os.path.getsize(p) == 0
 
171
            ## assert os.path.getsize(p) == 0
172
172
            os.remove(p)
173
 
        os.remove(self.base + '/.bzr/allow-upgrade')
174
173
        shutil.rmtree(self.base + '/.bzr/inventory-store')
175
174
        shutil.rmtree(self.base + '/.bzr/text-store')
176
175