I would like to use Bazaar for working with a project that uses Subversion and has a very long history. For example svn://svn.freebsd.org/base/head
.
There is a good plugin bzr-svn
which can be used to work with SVN repositories. There are some examples of relevant workflows here.
My issue is that everything that I have found seems to be written with an assumption that I want to import the full history from SVN. I do not want to do that. It takes too much disk space (and in reality the import will run out of memory if I try). I really do not care about any changes before a certain SVN revno/tag. But I do want to have each individual commit after the cutoff point to show up properly on the Bazaar side. How can I accomplish that?
I basically want the following logic for my vendor branch (from which I can make my local branches):
svn co svn://svn.freebsd.org/base/head -r CUTOFF_REVNO
while true
do
svn up -r NEXT # note: NEXT is not possible even though there is PREV
bzr commit
sleep N
done
Obviously the above does not store the commit messages and other such things in Bazaar, which is a problem. I could make this a daily cron job which just does svn up
and commits all the SVN changes within a day into the Bazaar branch in one single daily commit.
How can I accomplish this so that the meta-data and individual commits are properly converted to Bazaar (with the same granularity as they happen on the SVN side)? I do not need to be able to push into the SVN. All I need is a one-way solution. I hope there is a tool somewhere which can do exactly this!