如何将 bazaar 分支导出到新的 subversion 存储库,然后从中拉取/推送 [英] How to export a bazaar branch into a new subversion repository and then pull/push from it

查看:19
本文介绍了如何将 bazaar 分支导出到新的 subversion 存储库,然后从中拉取/推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做一个项目,使用 Bazaar 作为版本控制系统.现在我要和离岸的人一起工作,他们只想用SVN.

我有什么:

  • 我的 bazaar 分支及其文件和修订版.
  • 全新的 subversion 存储库.

我想要的:

  • 我的集市分支及其文件和修订版.
  • 具有相同文件和修订(包括日期和提交消息)的 Subversion 存储库.
  • 能够使用bzr从/向SVNpull/push.

我设法使用剪裁将分支复制到 svn 存储库中,但 bazaar 无法识别它(分支没有共同的祖先).

这种事情有可能吗?

解决方案

是的,可以使用 bzr-svn.创建 Subversion 存储库后,只需推送到主干:

<前>$ svnadmin 创建/my/svn/repo$ cd/my/bzr/branch$ bzr push/my/svn/repo/trunk推至修订版 X.

之后,您应该能够在他们进行更改时从后备箱中拉出.您可以使用 bzr push 推送您的更改,如果分支发生分歧,可能在重新设置它们之后(使用 bzr-rewrite 插件中的 bzr rebase).

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?

解决方案

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).

这篇关于如何将 bazaar 分支导出到新的 subversion 存储库,然后从中拉取/推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆