/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 tests/test_object_store.py

Mark bare repositories as not supporting working trees for the purpose of the testsuite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    TestCaseWithTransport,
35
35
    )
36
36
 
 
37
from bzrlib.plugins.git.cache import (
 
38
    DictGitShaMap,
 
39
    )
37
40
from bzrlib.plugins.git.object_store import (
38
41
    BazaarObjectStore,
39
42
    LRUTreeCache,
40
43
    _check_expected_sha,
41
44
    _find_missing_bzr_revids,
 
45
    _tree_to_objects,
42
46
    )
43
47
 
44
48
 
172
176
        bb.finish_series()
173
177
        self.assertTrue(b.id in self.store)
174
178
 
 
179
 
 
180
class TreeToObjectsTests(TestCaseWithTransport):
 
181
 
 
182
    def setUp(self):
 
183
        super(TreeToObjectsTests, self).setUp()
 
184
        self.idmap = DictGitShaMap()
 
185
 
 
186
    def test_no_changes(self):
 
187
        tree = self.make_branch_and_tree('.')
 
188
        entries = list(_tree_to_objects(tree, [tree], self.idmap, {}))
 
189
        self.assertEquals([], entries)