重播 svn repo 到 bazaar
这篇文章询问如何从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅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
.您可以使用 bzr-svn 插件轻松进行一次性迁移。
You can use bzr-svn plugin for one-time migration easily.