Converting an SVN Repository to Bazaar
James Henstridge
james at jamesh.id.au
Thu Jan 22 21:38:45 GMT 2009
On Fri, Jan 23, 2009 at 5:49 AM, A. S. Budden <abudden at gmail.com> wrote:
> This certainly looks very promising and I have now (sort of) managed
> to make a bazaar repository out of my existing repository. I created
> a new "AlBranchCreator" that had an additional __init__ stage that
> read a list of project directories (e.g. applications/vim/vimfiles)
> from a text file and used this as the basis upon which to decide in
> the _want_brt method. This went ahead and chewed for a bit and
> produced a functional repository. The only problem with it is that
> the history only goes back as far as the repository reorganisation (as
> the 'filter' won't recognise trunk/configuration/vimfiles/ as being
> the same directory as applications/vim/vimfiles/).
If your BranchCreator treats both trunk/configuration/vimfiles and
applications/vim/vimfiles as branches, then svn2bzr should follow
history if you did a copy/move from one location to the other.
During the import process it literally copies the branch at the first
location to the other, so it should maintain history.
Note that your BranchCreator should be returning False for paths
trunk, trunk/configuration, applications and applications/vim for this
to work though, or the copies won't be correctly traced.
> Is this possible, or will I have to refer back to the subversion
> repository if I ever I want to look at earlier history?
It really depends on how clean your branch reorganisation was. I
don't think I can say much more than that.
James.
More information about the bazaar
mailing list