~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

First cut at pluralised VersionedFiles. Some rather massive API incompatabilities, primarily because of the difficulty of coherence among competing stores.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        # 'dir-20051005095101-da1441ea3fa6917a'
136
136
        repo.lock_read()
137
137
        self.addCleanup(repo.unlock)
138
 
        self.assertNotEqual(
139
 
            [],
140
 
            repo.weave_store.get_weave(
141
 
                'dir-20051005095101-da1441ea3fa6917a',
142
 
                repo.get_transaction()).versions())
 
138
        text_keys = repo.texts.keys()
 
139
        dir_keys = [key for key in text_keys if key[0] ==
 
140
                'dir-20051005095101-da1441ea3fa6917a']
 
141
        self.assertNotEqual([], dir_keys)
143
142
 
144
143
    def test_upgrade_to_meta_sets_workingtree_last_revision(self):
145
144
        self.build_tree_contents(_upgrade_dir_template)