~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

[merge] fixes from 0.1 series

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
 
88
88
from bzrlib.branch import Branch, find_branch
89
89
from bzrlib.branch import BZR_BRANCH_FORMAT_5, BZR_BRANCH_FORMAT_6
 
90
import bzrlib.hashcache as hashcache
90
91
from bzrlib.revfile import Revfile
91
92
from bzrlib.weave import Weave
92
93
from bzrlib.weavefile import read_weave, write_weave
122
123
            note('starting upgrade from format 5 to 6')
123
124
            self._convert_to_prefixed()
124
125
            self._open_branch()
 
126
        cache = hashcache.HashCache(os.path.abspath(self.base))
 
127
        cache.clear()
 
128
        cache.write()
125
129
        note("finished")
126
130
 
127
131