Convert svn *branch* to bzr repository?

Asked by Jim Abraham

Hi All,

I want to convert just a part of my subversion repository to a bzr repository. I don't want to convert my entire svn repos to a bzr repos, because it's huge and I only need to keep a small part of it. I don't want to simply branch from it with bzr-svn because 1) I don't want to use svn as my repository any more, and 2) I don't want my bzr "base" to be just a branch, but a repository.

For example, I have

svn://repos/project_foo/trunk

and I want to make it a bazaar *repository*. Not just a branch (which I can easily do with bzr-svn). I want to do something like

>bzr init-repo ./project_foo_bzr
>bzr branch svn://repos/project_foo/trunk ./project_foo_bzr

This doesn't seem to be possible. Any ideas?

Regards,

Jim A.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Abraham
Solved:
Last query:
Last reply:
Revision history for this message
Gordon Tyler (doxxx) said :
#1

Try this:

>bzr init-repo ./project_foo_bzr
>bzr branch svn://repos/project_foo/trunk ./project_foo_bzr/trunk

Note the 'trunk' at the end of the location you're branching *to*. Since project_foo_bzr has been initialized as a repo, creating a branch underneath it will automatically use the repo as storage for the revisions in the branch.

Revision history for this message
Jim Abraham (jcabraham) said :
#2

Thanks!