~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-18 17:20:33 UTC
  • mfrom: (6031.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20110718172033-l9zmherfao7q80yp
(jam) Merge lp:bzr/2.4 into lp:bzr after fixing up release-notes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1293
1293
            if repository_policy is not None:
1294
1294
                repository_policy.configure_branch(result)
1295
1295
            self.copy_content_into(result, revision_id=revision_id)
1296
 
            master_branch = self.get_master_branch()
1297
 
            if master_branch is None:
 
1296
            master_url = self.get_bound_location()
 
1297
            if master_url is None:
1298
1298
                result.set_parent(self.bzrdir.root_transport.base)
1299
1299
            else:
1300
 
                result.set_parent(master_branch.bzrdir.root_transport.base)
 
1300
                result.set_parent(master_url)
1301
1301
        finally:
1302
1302
            result.unlock()
1303
1303
        return result