Push to both a bzr and a SVN
Erik Bågfors
zindar at gmail.com
Thu Jul 17 15:08:42 BST 2008
I would do this
cd $SVNPATH
cp -r $BZRPATH/.bzr .
svn co -r 1
bzr ci -m 'whatever message revision 1 had'
svn co -r 2
bzr ci -m 'whatever message revision 2 had'
etc.
Once you have done that you should have a nice bzr branch with all svn commits.
Not you junk the svn repo, and create a new using bzr-svn, and using
push to push your bzr branch there. This way, you should have a svn
branch that has all the properties correct to be able to just check
out of svn using bzr-svn.
Regards,
Erik
On Wed, Jul 16, 2008 at 9:42 PM, Guillaume Proux <gproux at gmail.com> wrote:
> Hello,
>
> I have an interesting set up where a Bazaar repository was migrated
> (by corporate will) to a SVN repository.
> Unfortunately the migration was done by hand and no history was kept.
> However, the old Bazaar repository is still online (but a few 100
> revision behind now) and we would like to be able to achieve the
> following workflow.
>
> 1) sync back the bzr rep from the SVN repository (committing all
> modified files directly is OK not too much lost history)
> 2) use bzr as the main dev server again
> 3) use bzr-svn on the corporate SVN server for backup purposes :)
>
> I have tried various combination of bzr push and merge but I don't
> manage to get this working.
> at the end i would like to be able to simply do
>
>
> bzr commit # commit to the bzr server
> ....
> * and every now and then
> bzr merge ../svnbranch # merge in the changes from svn
> bzr push ../svnbranch # commit to the svn server
>
> Is there a magic way to reconcile a svn+bzr directory and a branch of
> my original bzr repository?
>
> Any help appreciated.
>
> Best Regards,
>
> Guillaume
>
>
> Guillaume
>
>
More information about the bazaar
mailing list