0

This post asks how to convert from bazaar to svn. I need to do the opposite. I need to extract all the commit history from a svn repo and "replay" it on a bazaar repo. I will then drop the svn development and continue on bazaar.

Any hints ?

Edit:

Thanks for the answer. I ended up doing as follows:

1) Performing synchronization of the remote svn repo with the following script (adapted from here)

REPO_PATH=$HOME/tmp/repo
REPO_PATH_NUX=file://$HOME/tmp/repo
REPO_URL=https://example.com/repo/path

mkdir $REPO_PATH
svnadmin create $REPO_PATH
echo '#!/bin/sh' > $REPO_PATH/hooks/pre-revprop-change
chmod +x $REPO_PATH/hooks/pre-revprop-change
svnsync init $REPO_PATH_NUX $REPO_URL
svnsync sync $REPO_PATH_NUX 

2) dumped the synchronized local repository with svnadmin dump repo >dumpfile

3) ran svn2bzr dumpfile bzrrepo

Community
  • 1
  • 1
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431

2 Answers2

1

See the Bazaar migration guide, especially converting from Subversion. Since you don't intend to continue development in the SVN repo, you can use the fastest option, bzr-fastimport.

John Millikin
  • 197,344
  • 39
  • 212
  • 226
1

You can use bzr-svn plugin for one-time migration easily.

bialix
  • 20,053
  • 8
  • 46
  • 63