~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: 2007-04-26 08:34:14 UTC
  • mfrom: (2018.18.25 hpss-faster-copy)
  • Revision ID: pqm@pqm.ubuntu.com-20070426083414-8xgtmyk47txgquaw
Repository.tarball operation to speed initial checkouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
781
781
            result.create_repository()
782
782
        elif source_repository is not None and result_repo is None:
783
783
            # have source, and want to make a new target repo
784
 
            # we don't clone the repo because that preserves attributes
785
 
            # like is_shared(), and we have not yet implemented a 
786
 
            # repository sprout().
787
 
            result_repo = result.create_repository()
788
 
        if result_repo is not None:
 
784
            result_repo = source_repository.sprout(result, revision_id=revision_id)
 
785
        else:
789
786
            # fetch needed content into target.
790
787
            if source_repository is not None:
 
788
                # would rather do 
 
789
                # source_repository.copy_content_into(result_repo, revision_id=revision_id)
 
790
                # so we can override the copy method
791
791
                result_repo.fetch(source_repository, revision_id=revision_id)
792
792
        if source_branch is not None:
793
793
            source_branch.sprout(result, revision_id=revision_id)