如何将 SVN 1.4.4 (r25188) 升级到 SVN 1.6 [英] How to upgrade SVN 1.4.4 (r25188) to SVN 1.6

查看:25
本文介绍了如何将 SVN 1.4.4 (r25188) 升级到 SVN 1.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何将 SVN 从 1.4.4 版升级到 1.6 版?

How do we upgrade our SVN from version 1.4.4 to version 1.6?

我认为我们可以使用以下命令行,但在我们的版本中不存在:

I thought we could use the following command line, but it does not exist in our version:

svnadmin upgrade

SVN 在 Windows Server 环境中运行.我们运行的是 SVN 服务器版本:svnadmin,版本 1.4.4 (r25188) 编译 2007-06-08T18:49:42.

SVN is running on a Windows Server environment. We are running SVN Server version: svnadmin, version 1.4.4 (r25188) compiled 2007-06-08T18:49:42.

推荐答案

您使用的是哪种服务器?如果您正在运行 apache(http://) 或 svnserve(svn://),只需将所有 svn 二进制文件替换为 1.6.3 版本的二进制文件(膝盖跳 - 首先备份您的存储库,保留旧的二进制文件大约).如果您使用的是 apache,请不要忘记升级 apache 模块.

What kind of server are you using? If you're running apache(http://) or svnserve(svn://), just replace all the svn binaries with the 1.6.3 versions of the binaries (knee jerk nag - backup your repository first, keep the old binaries around). Don't forget to upgrade the apache modules if you're using apache.

如果您不使用服务器,而是针对文件目录 (c:\) 运行,只需更新您的客户端以使用 1.6.3.

If you're not using a server, but running against the files directy (c:\), just update your clients to use 1.6.3.

此时,您的新 1.6 服务器正在提供 1.4 存储库.要升级存储库结构并获得对新功能的完全访问权限,请使用 1.6 二进制文件附带的 svnadmin upgrade 命令.在可以访问存储库物理文件的机器上运行此命令,并为其指定存储库根目录的物理位置 (c:\myrepository).

At this point, your new 1.6 server is serving out the 1.4 repository. To upgrade the repository structure and gain full access to the new features, use the svnadmin upgrade command that comes with the 1.6 binaries. Run this command on a machine that has access to the physical files of the repository and give it the physical location of the repository root (c:\myrepository).

如果您使用 svnadmin dump 转储内容,创建新的空白存储库,svnadmin 加载旧转储,您可能会获得更优化的存储库结构.阅读 1.5 的发行说明和1.6 和svnadmin help upgrade"的输出找出原因.

You may get a more optimised repository structure if you dump out the contents with svnadmin dump, create new blank repository, svnadmin load the old dump. Read the release notes for 1.5 & 1.6 and the output of "svnadmin help upgrade" to find out why.

您的客户可以在准备好后单独升级.1.6 服务可以与 1.4、1.5 或 1.6 客户端通信,而 1.6 客户端可以与 1.4 服务器通信,所以先升级客户端没有关系.

Your clients can upgrade separately, when they're ready. A 1.6 service can talk to a 1.4, 1.5 or 1.6 client, and a 1.6 client can talk to a 1.4 server, so it doesn't matter if you upgrade the clients first.

与存储库不同,您机器上的工作副本会在新客户看到后立即升级.这意味着您将无法在同一台机器上混合不同版本的客户端,例如,如果您使用 tortoisesvn 和 ankh svn - 您需要同时将两个客户端更新到 1.6 版本.如果您收到工作副本版本错误,这就是原因.除非您停止使用旧客户端,否则它不会消失.

Unlike the repository, the working copies on your machines are upgraded as soon as a new client sees them. This means you will have trouble mixing clients of different versions on the same machine, so for example, if you use tortoisesvn and ankh svn - you'll need to update both clients to the 1.6 version at the same time. If you get working copy version errors, this will be why. It won't go away until you stop using the old clients.

与所有颠覆性事物一样,红皮书必不可少.

As with all things subversion, the redbook is essential.

这篇关于如何将 SVN 1.4.4 (r25188) 升级到 SVN 1.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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