How to export a bazaar branch into a new subversion repository and then pull/push from it

做~自己de王妃 提交于 2019-12-14 01:30:00

问题


I've been working on a project, using Bazaar as a version control system. Now I have to work with people offshore, and they only want to use SVN.

What I have:

  • My bazaar branch with its files and revisions.
  • A brand new subversion repository.

What I want:

  • My bazaar branch with its files and revisions.
  • The subversion repo with the same files and revisions (includings dates and commit messages).
  • Being able to pull / push from/to the SVN using bzr.

I managed to copy the branch into the svn repo using tailor, but bazaar won't recognized it (Branches have no common ancestor).

Is such a thing possible?


回答1:


Yes, this is possible using bzr-svn. After you've created your Subversion repository, simply push to trunk:

$ svnadmin create /my/svn/repo
$ cd /my/bzr/branch
$ bzr push /my/svn/repo/trunk
Pushed up to revision X.

After that, you should be able to pull from the trunk whenever they have made changes. You can push your changes using bzr push, possibly after rebasing them if the branches have diverged (using bzr rebase in the bzr-rewrite plugin).



来源:https://stackoverflow.com/questions/4932302/how-to-export-a-bazaar-branch-into-a-new-subversion-repository-and-then-pull-pus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!