~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-08-18 10:49:07 UTC
  • mfrom: (1910.4.15 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060818104907-d9d6f22c28578d93
(andrew) Improvements to test_bzr to work with the facilities offered by the smart server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
615
615
                # XXX FIXME RBC 20060214 need tests for this when the basis
616
616
                # is incomplete
617
617
                result_repo.fetch(basis_repo, revision_id=revision_id)
618
 
            result_repo.fetch(source_repository, revision_id=revision_id)
 
618
            if source_repository is not None:
 
619
                result_repo.fetch(source_repository, revision_id=revision_id)
619
620
        if source_branch is not None:
620
621
            source_branch.sprout(result, revision_id=revision_id)
621
622
        else:
733
734
        self._check_supported(format, unsupported)
734
735
        return format.open(self, _found=True)
735
736
 
736
 
    def sprout(self, url, revision_id=None, basis=None):
 
737
    def sprout(self, url, revision_id=None, basis=None, force_new_repo=False):
737
738
        """See BzrDir.sprout()."""
738
739
        from bzrlib.workingtree import WorkingTreeFormat2
739
740
        self._make_tail(url)