~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2012-01-16 14:45:48 UTC
  • mto: (6437.35.1 2.5.0-dev)
  • mto: This revision was merged to the branch mainline in revision 6439.
  • Revision ID: v.ladeuil+lp@free.fr-20120116144548-48mob8d7dee824uc
Tags: bzr-2.5b5
ReleaseĀ 2.5b5

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Black-box tests for bzr branches."""
19
19
 
 
20
from bzrlib.branch import BranchReferenceFormat
20
21
from bzrlib.tests import TestCaseWithTransport
21
22
 
22
23
 
72
73
        t = self.make_repository('a', format='development-colo')
73
74
        t.bzrdir.create_branch(name='another')
74
75
        branch = t.bzrdir.create_branch(name='colocated')
75
 
        t.bzrdir.set_branch_reference(target_branch=branch)
 
76
        BranchReferenceFormat().initialize(t.bzrdir, target_branch=branch)
76
77
        out, err = self.run_bzr('branches a')
77
78
        self.assertEquals(out, "  another\n"
78
79
                               "* colocated\n")