重播 svn repo 到 bazaar

发布于 2024-08-04 14:47:24 字数 877 浏览 3 评论 0原文

这篇文章询问如何从 bazaar 转换为 svn。我需要做相反的事情。我需要从 svn 存储库中提取所有提交历史记录,并在集市存储库上“重播”它。然后我将放弃 svn 开发并继续 bazaar。

有什么提示吗?

编辑

感谢您的回答。我最终做了如下操作:

1)使用以下脚本执行远程 svn 存储库的同步(改编自 此处)

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) 使用 svnadmin dump repo >dumpfile 转储同步的本地存储库

3) 运行 svn2bzr转储文件 bzrrepo

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

韵柒 2024-08-11 14:47:24

请参阅Bazaar 迁移指南,尤其是从 Subversion 转换。由于您不打算在 SVN 存储库中继续开发,因此可以使用最快的选项 bzr-fastimport

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.

始终不够 2024-08-11 14:47:24

您可以使用 bzr-svn 插件轻松进行一次性迁移。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文