~jameinel/bzr/2.4-failing-no-fdatasync

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-18 14:43:35 UTC
  • mfrom: (6016.2.2 2.4-no-open-master)
  • Revision ID: pqm@pqm.ubuntu.com-20110718144335-8v4u0gbnwzm0vzmt
(jameinel) Make 'bzr branch FROM_BOUND_BRANCH' succeed without opening the
 master branch. (John A Meinel)

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