~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 16:27:26 UTC
  • mto: This revision was merged to the branch mainline in revision 6449.
  • Revision ID: jelmer@samba.org-20120127162726-f3qlvm7xkfg460ck
Run subtree tests with development-subtree rather than deprecated dirstate-with-subtree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
824
824
 
825
825
    def test_sprout_recursive(self):
826
826
        tree = self.make_branch_and_tree('tree1',
827
 
                                         format='dirstate-with-subtree')
 
827
                                         format='development-subtree')
828
828
        sub_tree = self.make_branch_and_tree('tree1/subtree',
829
 
            format='dirstate-with-subtree')
 
829
            format='development-subtree')
830
830
        sub_tree.set_root_id('subtree-root')
831
831
        tree.add_reference(sub_tree)
832
832
        self.build_tree(['tree1/subtree/file'])
849
849
 
850
850
    def test_sprout_recursive_treeless(self):
851
851
        tree = self.make_branch_and_tree('tree1',
852
 
            format='dirstate-with-subtree')
 
852
            format='development-subtree')
853
853
        sub_tree = self.make_branch_and_tree('tree1/subtree',
854
 
            format='dirstate-with-subtree')
 
854
            format='development-subtree')
855
855
        tree.add_reference(sub_tree)
856
856
        self.build_tree(['tree1/subtree/file'])
857
857
        sub_tree.add('file')
863
863
        # FIXME: subtree/.bzr is left here which allows the test to pass (or
864
864
        # fail :-( ) -- vila 20100909
865
865
        repo = self.make_repository('repo', shared=True,
866
 
            format='dirstate-with-subtree')
 
866
            format='development-subtree')
867
867
        repo.set_make_working_trees(False)
868
868
        # FIXME: we just deleted the workingtree and now we want to use it ????
869
869
        # At a minimum, we should use tree.branch below (but this fails too
1021
1021
        otherdir = bzrdir.format_registry.make_bzrdir('knit')
1022
1022
        self.assertEqual(otherdir, mydir)
1023
1023
        self.assertFalse(otherdir != mydir)
1024
 
        otherdir2 = bzrdir.format_registry.make_bzrdir('dirstate-with-subtree')
 
1024
        otherdir2 = bzrdir.format_registry.make_bzrdir('development-subtree')
1025
1025
        self.assertNotEqual(otherdir2, mydir)
1026
1026
        self.assertFalse(otherdir2 == mydir)
1027
1027