/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Martin Pool
  • Date: 2006-05-08 01:11:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1702.
  • Revision ID: mbp@sourcefrog.net-20060508011131-6e6094374765a31f
Don't create broken standalone branches over sftp (Malone #43064)
We can't create a full working directory, but we should at least create
pending-merges and inventory files so that people can revert it using
an old client and keep working

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
        result = self._format._initialize_for_clone(url)
589
589
        basis_repo, basis_branch, basis_tree = self._get_basis_components(basis)
590
590
        self.open_repository().clone(result, revision_id=revision_id, basis=basis_repo)
591
 
        self.open_branch().clone(result, revision_id=revision_id)
 
591
        from_branch = self.open_branch()
 
592
        from_branch.clone(result, revision_id=revision_id)
592
593
        try:
593
594
            self.open_workingtree().clone(result, basis=basis_tree)
594
595
        except errors.NotLocalUrl:
596
597
            try:
597
598
                WorkingTreeFormat2().initialize(result)
598
599
            except errors.NotLocalUrl:
599
 
                # but we canot do it for remote trees.
600
 
                pass
 
600
                # but we cannot do it for remote trees.
 
601
                to_branch = result.open_branch()
 
602
                WorkingTreeFormat2().stub_initialize_remote(to_branch.control_files)
601
603
        return result
602
604
 
603
605
    def create_branch(self):