~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: INADA Naoki
  • Date: 2011-05-18 06:27:34 UTC
  • mfrom: (5887 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5894.
  • Revision ID: songofacandy@gmail.com-20110518062734-1ilhll0rrqyyp8um
merge from lp:bzr and resolve conflicts.

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