~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-08 01:57:31 UTC
  • mfrom: (1692.7.11 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060508015731-cde475bafa628268
(mbp) Fix #43064, doc updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
610
610
        result = self._format._initialize_for_clone(url)
611
611
        basis_repo, basis_branch, basis_tree = self._get_basis_components(basis)
612
612
        self.open_repository().clone(result, revision_id=revision_id, basis=basis_repo)
613
 
        self.open_branch().clone(result, revision_id=revision_id)
 
613
        from_branch = self.open_branch()
 
614
        from_branch.clone(result, revision_id=revision_id)
614
615
        try:
615
616
            self.open_workingtree().clone(result, basis=basis_tree)
616
617
        except errors.NotLocalUrl:
618
619
            try:
619
620
                WorkingTreeFormat2().initialize(result)
620
621
            except errors.NotLocalUrl:
621
 
                # but we canot do it for remote trees.
622
 
                pass
 
622
                # but we cannot do it for remote trees.
 
623
                to_branch = result.open_branch()
 
624
                WorkingTreeFormat2().stub_initialize_remote(to_branch.control_files)
623
625
        return result
624
626
 
625
627
    def create_branch(self):