/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2019-02-03 23:43:20 UTC
  • mfrom: (7267 work)
  • mto: This revision was merged to the branch mainline in revision 7268.
  • Revision ID: jelmer@jelmer.uk-20190203234320-zbquyl9973hbujnb
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1477
1477
            errors.AlreadyBranchError, tree.controldir.create_branch,
1478
1478
            name='foo')
1479
1479
 
 
1480
    def test_supports_relative_reference(self):
 
1481
        tree = self.make_branch_and_tree('.', format='development-colo')
 
1482
        target1 = tree.controldir.create_branch(name='target1')
 
1483
        target2 = tree.controldir.create_branch(name='target2')
 
1484
        source = tree.controldir.set_branch_reference(target1, name='source')
 
1485
        self.assertEqual(
 
1486
            target1.user_url, tree.controldir.open_branch('source').user_url)
 
1487
        source.controldir.get_branch_transport(None, 'source').put_bytes(
 
1488
            'location', b'file:,branch=target2')
 
1489
        self.assertEqual(
 
1490
            target2.user_url, tree.controldir.open_branch('source').user_url)
 
1491
 
1480
1492
 
1481
1493
class SampleBzrFormat(bzrdir.BzrFormat):
1482
1494