~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
1394
1394
                    from_location, revision)
1395
1395
                raise errors.BzrCommandError(msg)
1396
1396
        else:
 
1397
            try:
 
1398
                to_repo = to_dir.open_repository()
 
1399
            except errors.NoRepositoryPresent:
 
1400
                to_repo = to_dir.create_repository()
 
1401
            to_repo.fetch(br_from.repository, revision_id=revision_id)
1397
1402
            branch = br_from.sprout(to_dir, revision_id=revision_id)
1398
1403
        _merge_tags_if_possible(br_from, branch)
1399
1404
        # If the source branch is stacked, the new branch may