1、svn 遇到的问题
出现问题之前:
a、构建服务器上原本的 SubVersion svn(Version Control with Subversion [),版本号:1.7.0(只支持命令行)。
b、为了使用便利,安装一个可视化svn client: TortoiseSVN , 版本号:1.8
TortoiseSVN
A Subversion client for Windows
Version 1.8
出现问题:
这两天自动构建提交项目时候,虚拟机用SVN提交的时候,总是报如下提示:
svn: This client is too old to work with working copy ‘/opt/gforge/www/account’. You need
to get a newer Subversion client, or to downgrade this working copy.
See http://subversion.tigris.org/faq.html#working-copy-format-change
for details.
2、原因:
由于使用高版本的TortoiseSVN提交过代码,导致.svn目录,里面保存着svn需要的一些版本信息,用TortoiseSVN去操作,会在.svn里增加一些文件,
但是另一个svn客户端(SubVersion)不能识别这些新增的文件,所以在命令行不能使用 svn(虽然 TortoiseSVN也支持命令行,但是环境变量配置的是SubVersion的路径。)
参考:http://sducxh.iteye.com/blog/589136
官方解释:http://subversion.apache.org/faq.html#working-copy-format-change
I got an error saying "This client is too old to work with working copy '...' ". How can I fix it without upgrading Subversion?
Sometimes the working copy metadata format changes incompatibly between minor releases. For example, say you have a working copy created with Subversion 1.4.4, but one day you decide to try out Subversion 1.5.0. Afterwards, you attempt to switch back to 1.4.4, but it doesn't work — it just gives the above error.
This is because 1.5.0 upgraded your working copy format to support some new features (in this case, changelists, the keep-local flag, and variable-depth directories). Although 1.4.4 doesn't know anything about these new features, it can at least recognize that the working copy format has been upgraded to something higher than it can handle.
1.5.0 upgraded the working copy for a good reason: it realizes that 1.4.4 does not know about these new features, and that if 1.4.4 were to meddle with the working copy metadata now, important information might be lost, possibly causing corruption (see issue #2961, for example).
Subversion 1.7.0 and newer will not upgrade working copies unless you explicitly ask them to do so. (Upgrading the working copies is, however, required; Subversion 1.7.0 cannot operate on working copies created or used by earlier Subversions.)
Subversion 1.6.x and earlier automatically upgrade working copies when they first touch them. This behavior can be annoying, if you just want to try out a new release of Subversion without installing it permanently. For this reason, we distribute a script that can downgrade working copies when doing so is safe:
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py
Run that script with the "--help" option to see how to use it. (It can downgrade 1.6.x working copies to formats usable by Subversion 1.4.x and 1.5.x, but cannot downgrade 1.7.x working copies.)
As future versions of Subversion are released, we will try to keep this FAQ entry up-to-date with potential downgrade scenarios and their implications.
解决:将SubVersion 的版本升级到和 TortoiseSVN 的版本一致(1.8.x,x任意都行)。
PS:SVN是一套规范联盟,每个大版本(例如:1.4,1.5,1.6,1.7,1.8)的规范都是固定的,即大版本中的各个小版本的规范相同,而SubVersion 和 TortoiseSVN 都遵守规范。
相关推荐
This client is too old to work with working copy 'D:\MyEclipseWorkspace\projectName\WebRoot\WEB-INF\lib'; please get a newer Subversion client. 估计是不经意中使用了1.6.5做了提交导致的问题。 官方...
标题 "Myeclipse SVN 插件svn: This client is too old to work with working copy" 提到的问题,通常出现在用户尝试使用较旧版本的Subversion(SVN)客户端操作一个由新版本Subversion创建或更新的工作副本时。...
标题 "This client is too old to work with working copy 'H:\\WEB\\workspace\\Square\\WebCon'" 提示了一个常见的Subversion(SVN)错误,通常在使用较旧版本的SVN客户端尝试访问或操作使用新格式版本控制的工作...
参考"SVN:This client is too old to work with working copy…解决办法 .txt"文件,按照其中的指南进行操作。 5. **使用`svn upgrade`命令**:在命令行中,导航到你的工作副本目录,并运行`svn upgrade`命令。这...
SVN:This client is too old to work with working copy…解决办法 .txt 1、cmd进入py文件目录下执行py文件加入--help查看帮助,命令C:\change-svn-wc-format>change-svn-wc-format.py --help 2、cmd执行下面命令...
6. svn: This client is too old to work with working copy '.'. You need to get a newer Subversion client, or to downgrade this working copy. 该错误提示的原因是安装了多个版本的 SVN 客户端,且各个客户端...
6. **错误信息:This client is too old to work with working copy** 当安装了多个版本的SVN客户端,且版本不一致时,会出现此问题。为了解决这个问题,需要确保所有客户端都升级到同一版本,或者删除旧版本的...
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The...