~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge.py

(jelmer) Use 'development-subtree' format rather than
 'dirstate-with-subtree' in tests. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
 
228
228
    def test_nested_merge(self):
229
229
        tree = self.make_branch_and_tree('tree',
230
 
            format='dirstate-with-subtree')
 
230
            format='development-subtree')
231
231
        sub_tree = self.make_branch_and_tree('tree/sub-tree',
232
 
            format='dirstate-with-subtree')
 
232
            format='development-subtree')
233
233
        sub_tree.set_root_id('sub-tree-root')
234
234
        self.build_tree_contents([('tree/sub-tree/file', 'text1')])
235
235
        sub_tree.add('file')
2634
2634
        # Tested with a real WT, because BranchBuilder/MemoryTree don't handle
2635
2635
        # 'tree-reference'
2636
2636
        wt = self.make_branch_and_tree('tree',
2637
 
            format='dirstate-with-subtree')
 
2637
            format='development-subtree')
2638
2638
        wt.lock_write()
2639
2639
        self.addCleanup(wt.unlock)
2640
2640
        sub_tree = self.make_branch_and_tree('tree/sub-tree',
2641
 
            format='dirstate-with-subtree')
 
2641
            format='development-subtree')
2642
2642
        wt.set_root_id('a-root-id')
2643
2643
        sub_tree.set_root_id('sub-tree-root')
2644
2644
        self.build_tree_contents([('tree/sub-tree/file', 'text1')])
2669
2669
        # Tested with a real WT, because BranchBuilder/MemoryTree don't handle
2670
2670
        # 'tree-reference'
2671
2671
        wt = self.make_branch_and_tree('tree',
2672
 
            format='dirstate-with-subtree')
 
2672
            format='development-subtree')
2673
2673
        wt.lock_write()
2674
2674
        self.addCleanup(wt.unlock)
2675
2675
        sub_tree = self.make_branch_and_tree('tree/sub',
2676
 
            format='dirstate-with-subtree')
 
2676
            format='development-subtree')
2677
2677
        wt.set_root_id('a-root-id')
2678
2678
        sub_tree.set_root_id('sub-tree-root')
2679
2679
        self.build_tree_contents([('tree/sub/file', 'text1')])
2708
2708
        # Tested with a real WT, because BranchBuilder/MemoryTree don't handle
2709
2709
        # 'tree-reference'
2710
2710
        wt = self.make_branch_and_tree('tree',
2711
 
            format='dirstate-with-subtree')
 
2711
            format='development-subtree')
2712
2712
        wt.lock_write()
2713
2713
        self.addCleanup(wt.unlock)
2714
2714
        sub_tree = self.make_branch_and_tree('tree/sub',
2715
 
            format='dirstate-with-subtree')
 
2715
            format='development-subtree')
2716
2716
        wt.set_root_id('a-root-id')
2717
2717
        sub_tree.set_root_id('sub-tree-root')
2718
2718
        self.build_tree_contents([('tree/sub/file', 'text1')])
2751
2751
        # Tested with a real WT, because BranchBuilder/MemoryTree don't handle
2752
2752
        # 'tree-reference'
2753
2753
        wt = self.make_branch_and_tree('tree',
2754
 
            format='dirstate-with-subtree')
 
2754
            format='development-subtree')
2755
2755
        wt.lock_write()
2756
2756
        self.addCleanup(wt.unlock)
2757
2757
        sub_tree = self.make_branch_and_tree('tree/sub',
2758
 
            format='dirstate-with-subtree')
 
2758
            format='development-subtree')
2759
2759
        wt.set_root_id('a-root-id')
2760
2760
        sub_tree.set_root_id('sub-tree-root')
2761
2761
        self.build_tree_contents([('tree/sub/file', 'text1')])