~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_inv.py

Merge bzr.dev 5887, to get the update_basis_by_delta changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
class TestApplyInventoryDelta(TestCaseWithWorkingTree):
43
43
 
 
44
    def setUp(self):
 
45
        super(TestApplyInventoryDelta, self).setUp()
 
46
        if not self.bzrdir_format.repository_format.supports_full_versioned_files:
 
47
            raise tests.TestNotApplicable(
 
48
                "format does not support inventory deltas")
 
49
 
44
50
    def test_add(self):
45
51
        wt = self.make_branch_and_tree('.')
46
52
        wt.lock_write()
157
163
 
158
164
    def test_tree_reference_matches_inv(self):
159
165
        base = self.make_branch_and_tree('base')
 
166
        if base.branch.repository._format.supports_full_versioned_files:
 
167
            raise tests.TestNotApplicable(
 
168
                "format does not support inventory deltas")
160
169
        if not base.supports_tree_reference():
161
170
            raise tests.TestNotApplicable("wt doesn't support nested trees")
162
171
        # We add it as a directory, but it becomes a tree-reference