~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-01-18 17:47:06 UTC
  • mto: (6437.3.9 2.5)
  • mto: This revision was merged to the branch mainline in revision 6444.
  • Revision ID: jelmer@samba.org-20120118174706-33pxrecbgbfd8ryx
UseĀ ControlDir.set_branch_reference.

Show diffs side-by-side

added added

removed removed

Lines of Context:
598
598
    def make_branch_and_tree(self, relpath):
599
599
        source = self.make_branch(pathjoin('..', relpath))
600
600
        checkout = bzrdir.BzrDirMetaFormat1().initialize(relpath)
601
 
        bzrlib.branch.BranchReferenceFormat().initialize(checkout,
602
 
            target_branch=source)
 
601
        checkout.set_branch_reference(source)
603
602
        return checkout.create_workingtree()
604
603
 
605
604