/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

Test the disk layout of format3 working trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        self.pb = ui_factory.progress_bar()
129
129
        if isinstance(self.old_format, BzrDirFormat4):
130
130
            note('starting upgrade from format 4 to 5')
 
131
            if isinstance(self.transport, LocalTransport):
 
132
                self.bzrdir.get_workingtree_transport(None).delete('stat-cache')
131
133
            self._convert_to_weaves()
132
134
        if isinstance(self.old_format, BzrDirFormat5):
133
135
            note('starting upgrade from format 5 to 6')
134
136
            self._convert_to_prefixed()
135
 
        if isinstance(self.transport, LocalTransport):
136
 
            cache = hashcache.HashCache(abspath(self.base))
137
 
            cache.clear()
138
 
            cache.write()
139
137
        note("finished")
140
138
 
141
139
    def _convert_to_prefixed(self):