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
789
786
# fetch needed content into target.
790
787
if source_repository is not None:
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)