Mirror bzr branch in svn

Asked by Alan Trick

I want to mirror my bzr brach in svn so that people without bazaar can view it. I tried the following to test it out, but it doesn't work:

$ cd ~/workspace/remark # my bzr brach
$ svnadmin create ~/tmp/svn
$ bzr push file:///home/trick/tmp/svn
This transport does not update the working tree of: file:///home/trick/tmp/svn
bzr: ERROR: libsvn._core.SubversionException: ("File already exists: filesystem '/home/trick/tmp/svn/db', transaction '1-1', path '.bzrignore'", 160020)
<python traceback and such which pretty much says the same thing>

Is this a bug, or is there something wrong with my approach to the problem? I'm using python 2.5.1.final.0, bzr 0.15.0, bzr-svn 0.32 on ubuntu 7.04.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alan Trick (trick) said :
#1

I updated to bzr 0.17.0 and bzr-svn 0.34 and the problem still exists.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#2

Pushing existing branches into Subversion isn't supported at the moment.

Revision history for this message
Wesley J. Landaker (wjl) said :
#3

I know this topic is old, but here is some addition information for anyone that comes across this answer with the same question:

Hopefully bzr-svn will supports this natively at some point, but there are some alternatives in the meantime:

If you don't care about history, but just want to let svn users access your code, you can manually push snapshots of your branch into svn. This can be done easily with the bzrtools "bzr export" command coupled with the "svn-load-dirs" svn contrib tool.

If you want full history and/or more automation for doing this, it is still possible to create an svn mirror of a bzr branch using a tool like tailor <http://progetti.arstecnica.it/tailor>, which can sync multiple VCSs.

Or, if you just want to allow people without bzr to view a branch, but you don't care about it being in svn specifically, you can also use a tool like loggerhead <https://launchpad.net/loggerhead>, or simply host a branch on launchpad itself, which gives the same sort of functionality.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#4

This is actually already supported by bzr-svn now.

Can you help with this problem?

Provide an answer of your own, or ask Alan Trick for more information if necessary.

To post a message you must log in.