问题
I have written some python scripts that take advantage of pysvn to analyze a project. I would like to run these on a project that is now in a bazaar repo so I was wondering how I could get a copy of the bazaar repo on my machine and then translate it to a svn standard so pysvn can use it.
I found some documentation on going SVN to Bazaar but not the other way around. Is it possible?
回答1:
You say the scripts are in Python? You're in luck as Bazaaar is written in Python, so bzrlib can be used to analyse a repository.
That said, with bzr-svn installed on Ubuntu 9.04, I am getting "fetch() got an unexpected keyword argument 'fetch_spec'" when I attempt to "bzr push" to a folder in a subversion repo.
回答2:
You can use bzr-svn plugin to push bzr branch into svn repo.
回答3:
I haven't used it for Bazaar, but I have used Tailor to keep an svn repo in sync with a git repo.
来源:https://stackoverflow.com/questions/1380756/convert-bazaar-repo-to-svn