~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_checkout.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
        target_stat = os.stat('target/file1')
177
177
        self.assertEqual(second_stat, target_stat)
178
178
 
 
179
    def test_colo_checkout(self):
 
180
        source = self.make_branch_and_tree('source', format='development-colo')
 
181
        self.build_tree(['source/file1'])
 
182
        source.add('file1')
 
183
        source.commit('added file')
 
184
        target = source.bzrdir.sprout('file:second,branch=somebranch',
 
185
            create_tree_if_local=False)
 
186
        out, err = self.run_bzr('checkout file:,branch=somebranch .',
 
187
            working_dir='second')
 
188
        # We should always be creating a lighweight checkout for colocated
 
189
        # branches.
 
190
        self.assertEquals(
 
191
            target.open_branch(name='somebranch').base,
 
192
            target.get_branch_reference(name=""))
 
193
 
179
194
 
180
195
class TestSmartServerCheckout(TestCaseWithTransport):
181
196