从 Subversion 1.4 迁移到 1.6

发布于 2024-08-05 19:36:31 字数 95 浏览 2 评论 0原文

有人可以为我指出将 Subversion 1.4 存储库迁移到不同服务器上的 Subversion 1.6 的正确方向吗?我很感激能得到的任何帮助,我在谷歌上搜索的运气不太好。

Can somebody please point me in the right direction for migrating a Subversion 1.4 repository to Subversion 1.6 on a different server ? I'd appreciate any help I can get, I'm not having much luck googling this.

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

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

发布评论

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

评论(3

天荒地未老 2024-08-12 19:36:32

确保将该转储文件视为二进制文件。它看起来像一个文本文件,您可以通过多种方式对其进行编辑......但它不仅仅是文本。因此,如果在传输过程中发生换行转换或其他情况,您最终会陷入混乱。

Make certain that you are treating that dump file as a binary file. It looks like a text file and you can get away with editing it in a number of ways... but it isn't just text. So if a newline conversion has occurred during the transfer or something you'd wind up with a mess.

时光与爱终年不遇 2024-08-12 19:36:31

首先,我不能 100% 确定您可以在 Linux 和 Windows 之间自由移动转储文件。您可能需要转换行结尾。

接下来,您应该尝试先移动 1.4 格式的存储库,然后就地升级。在目标计算机上执行此操作的一种方法:

svnadmin create --pre-1.5-compatible /path/to/repo
svnadmin load /path/to/repo <dumpfile
svnadmin upgrade /path/to/repo

请参阅 SVN 书籍 了解 svnadmin 的详细信息。

First of all, I'm not 100% sure that you can move a dump file freely between Linux and Windows. You may have to convert line endings.

Next, you should try to first move the repository in 1.4 format, and then upgrade it in place. One way to do that, on the target machine:

svnadmin create --pre-1.5-compatible /path/to/repo
svnadmin load /path/to/repo <dumpfile
svnadmin upgrade /path/to/repo

See the SVN book for details of svnadmin.

疾风者 2024-08-12 19:36:31

我们的方式略有不同:我们创建了一个新的存储库并使用 svnsync 创建存储库的镜像。在您想要切换之前,应将其用作只读。然后向旧存储库添加挂钩以禁止提交(理想情况下显示错误消息,告诉用户重新定位到新存储库)。最后一次 svnsync 并激活新存储库。这比转储要快得多,而且效率更高,因为我们可以赶上并将最新更改同步到旧存储库。

We did it in a slight different way: we created a new repository and used svnsync to create a mirror of the repository. This one should be used as read-only until the time you want to switch. Then add hooks to the old repository to forbid commits (ideally display and error message telling your users to relocate to the new repository). svnsync a last time and activate the new repository. This was much faster than dumping and more efficient as we could catch up and sync the latest changes to the old repos.

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