Convert from Subversion Scenario
[DRAFT: this page is still being reviewed by bzr experts for correctness.]
Suppose you want to convert a repository maintained in Subversion to bzr. Here's an overview of how you'd do it:
- Install the bzr-svn plugin.
- Assuming that the root of your Subversion repository is at svn://svn.example.com/project/, run:
$ bzr svn-import svn://svn.example.com/project project.bzr
This will create a local Bazaar repository named project.bzr which contains a Bazaar branch for each of the branches that exists in the remote Subversion repository.
See "bzr help svn-import" for command-line options to
Additional Notes
Individual branches
For individual branches, you can just use "bzr branch" like you would use on a bzr branch:
$ bzr branch svn://svn.example.com/project/trunk project-trunk
Working trees
By default svn-import will not create a working tree for each branch it imports (to save disk space). To create a working tree for a branch, run "bzr co" inside of the branch or use the --trees option to "bzr svn-import".
