/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_basis_inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from bzrlib.tests import TestNotApplicable
18
 
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
19
 
import bzrlib.xml6
 
17
from breezy.tests import TestNotApplicable
 
18
from breezy.tests.per_workingtree import TestCaseWithWorkingTree
 
19
import breezy.xml6
20
20
 
21
21
 
22
22
class TestBasisInventory(TestCaseWithWorkingTree):
25
25
        # This test is not applicable to DirState based trees: the basis is
26
26
        # not separate is mandatory.
27
27
        if isinstance(self.workingtree_format,
28
 
            bzrlib.workingtree_4.DirStateWorkingTreeFormat):
 
28
            breezy.workingtree_4.DirStateWorkingTreeFormat):
29
29
            raise TestNotApplicable("not applicable to %r"
30
30
                % (self.workingtree_format,))
31
31
        # TODO: jam 20051218 this probably should add more than just
53
53
        self.assertTrue(t._transport.has('basis-inventory-cache'))
54
54
 
55
55
        basis_inv_txt = t.read_basis_inventory()
56
 
        basis_inv = bzrlib.xml7.serializer_v7.read_inventory_from_string(basis_inv_txt)
 
56
        basis_inv = breezy.xml7.serializer_v7.read_inventory_from_string(basis_inv_txt)
57
57
        self.assertEqual('r2', basis_inv.revision_id)
58
58
        store_inv = b.repository.get_inventory('r2')
59
59
 
64
64
        # This test is not applicable to DirState based trees: the basis is
65
65
        # not separate and ignorable.
66
66
        if isinstance(self.workingtree_format,
67
 
            bzrlib.workingtree_4.DirStateWorkingTreeFormat):
 
67
            breezy.workingtree_4.DirStateWorkingTreeFormat):
68
68
            raise TestNotApplicable("not applicable to %r"
69
69
                % (self.workingtree_format,))
70
70
        t = self.make_branch_and_tree('.')