Add notes about me no longer maintaining my svn2bzr branches.
|Deletions are marked like this.||Additions are marked like this.|
|Line 116:||Line 116:|
|* http://samba.org/~jelmer/bzr/svn2bzr||* http://people.samba.org/bzr/jelmer/svn2bzr/trunk|
It does that by reading a dump file with the history of a given Subversion repository, and creating the Bazaar 2.0 repository according to the given parameters.
The basic command usage is:
svn2bzr.py [options] <dump file> <output dir>
The following options are accepted:
- Will build the new repository as if the Subversion repository
Add REGEXP to the ordered list of filtering expressions. If a path matches that expression before matching an exclude expression, the path will be converted. If no expressions match in the filtering list, the path is also considered. BRBR
Add REGEXP to the ordered list of filtering expressions. If a path matches that expression before matching an include expression, the path won't be converted. If no expressions match in the filtering list, the path is considered. BRBR
- Define the conversion mechanism used. Currently there are two
schemes: single, and trunk. The single scheme (the default) will convert everything into a single Bazaar 2.0 branch. The trunk scheme expects the Subversion repository to be in the trunk/tags/branches format, and will split the trunk, each tag, and each branch into a different Bazaar 2.0 branch.
Define the logging level to LEVEL, which may be debug, info, warning, or error.
Convert everything inside a Subversion repository into a Bazaar 2.0 branch:
svn2bzr.py svn.dump bzr/
Convert a repository using the trunk/tags/branches scheme into multiple Bazaar 2.0 branches:
svn2bzr.py --scheme=trunk svn.dump bzr/
Convert just the trunk of a Subversion repository using the trunk/tags/branches scheme into a Bazaar 2.0 branch:
svn2bzr.py --prefix=trunk svn.dump bzr/
Convert the trunk and the branches directories of a Subversion repository using the trunk/tags/branches scheme into multiple Bazaar 2.0 branches:
svn2bzr.py --scheme=trunk --exclude=tags svn.dump bzr/
Another way to do the same thing:
svn2bzr.py --scheme=trunk --include=trunk --include=branches --exclude='.*' svn.dump bzr/
This release works with Bazaar 0.8, but has several [https://launchpad.net/products/svn2bzr/+bugs known bugs].
The original version is still available from:
http://bzr.labix.org/svn2bzr/svn2bzr.py (updated 2005-12-20)
Bazaar 2.0 branch
There's a Bazaar 2.0 branch at:
This branch works with bzr 0.7.
Another branch, developed by Jelmer Vernooij, is available from:
This branch contains support for svn:executable and svn:ignore properties and some small bugfixes. It works with bzr 0.8.
This branch is no longer actively maintained (the author is instead working on BzrSvn)
Copyright (c) 2005 Canonical Ltd. Copyright (C) 2005-2006 Jelmer Vernooij.
svn2bzr is available under the GPL.
svn2bzr was written by Gustavo Niemeyer <firstname.lastname@example.org>