~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_create_clone.py

  • Committer: Andrew Bennetts
  • Date: 2009-08-25 01:25:57 UTC
  • mfrom: (4642 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4657.
  • Revision ID: andrew.bennetts@canonical.com-20090825012557-1ku5o09nv3ra9n12
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
class TestCreateClone(TestCaseWithBranch):
27
27
 
28
28
    def test_create_clone_on_transport_missing_parent_dir(self):
29
 
        self.thisFailsStrictLockCheck()
30
29
        tree = self.make_branch_and_tree('source')
31
30
        tree.commit('a commit')
32
31
        source = tree.branch
36
35
        self.assertFalse(self.get_transport('.').has('subdir'))
37
36
 
38
37
    def test_create_clone_on_transport_missing_parent_dir_create(self):
39
 
        self.thisFailsStrictLockCheck()
40
38
        tree = self.make_branch_and_tree('source')
41
39
        tree.commit('a commit')
42
40
        source = tree.branch
48
46
            result.bzrdir.root_transport.base)
49
47
 
50
48
    def test_create_clone_on_transport_use_existing_dir_false(self):
51
 
        self.thisFailsStrictLockCheck()
52
49
        tree = self.make_branch_and_tree('source')
53
50
        tree.commit('a commit')
54
51
        source = tree.branch
59
56
        self.assertFalse(target_transport.has(".bzr"))
60
57
 
61
58
    def test_create_clone_on_transport_use_existing_dir_true(self):
62
 
        self.thisFailsStrictLockCheck()
63
59
        tree = self.make_branch_and_tree('source')
64
60
        tree.commit('a commit')
65
61
        source = tree.branch
70
66
        self.assertEqual(source.last_revision(), result.last_revision())
71
67
 
72
68
    def test_create_clone_on_transport_no_revision_id(self):
73
 
        self.thisFailsStrictLockCheck()
74
69
        tree = self.make_branch_and_tree('source')
75
70
        tree.commit('a commit')
76
71
        source = tree.branch
79
74
        self.assertEqual(source.last_revision(), result.last_revision())
80
75
 
81
76
    def test_create_clone_on_transport_revision_id(self):
82
 
        self.thisFailsStrictLockCheck()
83
77
        tree = self.make_branch_and_tree('source')
84
78
        old_revid = tree.commit('a commit')
85
79
        source_tip = tree.commit('a second commit')
93
87
        self.assertFalse(result.repository.has_revision(source_tip))
94
88
 
95
89
    def test_create_clone_on_transport_stacked(self):
96
 
        self.thisFailsStrictLockCheck()
97
90
        tree = self.make_branch_and_tree('source')
98
91
        tree.commit('a commit')
99
92
        trunk = tree.branch.create_clone_on_transport(
107
100
        self.assertEqual(trunk.base, result.get_stacked_on_url())
108
101
 
109
102
    def test_create_clone_of_multiple_roots(self):
110
 
        self.thisFailsStrictLockCheck()
111
103
        try:
112
104
            builder = self.make_branch_builder('local')
113
105
        except (errors.TransportNotPossible, errors.UninitializableFormat):
129
121
        self.hook_calls.append(pre_change_params)
130
122
 
131
123
    def test_create_clone_on_transport_stacked_hooks_get_stacked_branch(self):
132
 
        self.thisFailsStrictLockCheck()
133
124
        tree = self.make_branch_and_tree('source')
134
125
        tree.commit('a commit')
135
126
        trunk = tree.branch.create_clone_on_transport(