spring svn: E155021: 此客户端太旧,无法使用 xxx 的工作副本(格式“31”)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25294420/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-07 23:59:34  来源:igfitidea点击:

svn: E155021: This client is too old to work with the working copy at xxx (format '31')

springsvngradlespring-tool-suite

提问by Ankur Garg

I am trying to import some gradle projects in my Spring Tool Suite . I have installed Subclipse 1.10.5 in my STS and svn client installed in my machine is 1.8.8 . I have tried downgrading to 1.7.10 on my mac but still I get the same problem while importing .

我正在尝试在我的 Spring Tool Suite 中导入一些 gradle 项目。我已经在我的 STS 中安装了 Subclipse 1.10.5 并且我机器上安装的 svn 客户端是 1.8.8 。我曾尝试在 Mac 上降级到 1.7.10,但在导入 .

For others SVN 1.7.10 and Subclipse 1.10.5 seems to work fine but in my machine I am getting the error

对于其他 SVN 1.7.10 和 Subclipse 1.10.5 似乎工作正常,但在我的机器上我收到错误

svn: E155021: This client is too old to work with the working copy at
  '/Users/agarg/Documents/Mars/trunk' (format '31')

Stuck here for some time now and unable to resolve this . Tried a lot of things as I found over the net but still stuck.

卡在这里一段时间了,无法解决这个问题。我在网上找到了很多东西,但仍然卡住了。

回答by Tmarty

I had this problem on Mac OS Yosemite with Webstorm and IntelliJ.

我在带有 Webstorm 和 IntelliJ 的 Mac OS Yosemite 上遇到了这个问题。

svn --versionon the command line printed 1.8, but even with command line client option enabled with value svnin Webstorm/IntelliJ I was getting the warning.

svn --version在命令行上打印了 1.8,但即使svn在 Webstorm/IntelliJ 中启用了带有值的命令行客户端选项,我还是收到了警告。

Running which svnand pasting the value (/usr/local/bin/svnfor me) into WebStorm->Preferences->Version Control->Subversion->Use command line clientremoved the warning and fixed the issues I was having in Webstorm and IntelliJ.

运行which svn并粘贴值(/usr/local/bin/svn对我而言)到WebStorm->Preferences->Version Control->Subversion->Use command line client删除了警告并修复了我在 Webstorm 和 IntelliJ 中遇到的问题。

回答by bahrep

The working copy has format understandable by SVN 1.8 client, but your client is SVN 1.7 or older.

工作副本具有SVN 1.8 客户端可以理解的格式,但您的客户端是 SVN 1.7 或更旧

  1. You should double-check what Subclipse / SVNKit / svn.exe client versions you have on your system.

  2. Try accessing the working copy from command-line and see whether you get the same error.

  1. 您应该仔细检查系统上的 Subclipse / SVNKit / svn.exe 客户端版本。

  2. 尝试从命令行访问工作副本,看看是否遇到相同的错误。

回答by kwills

If you definitely have svn installed and running at the correct version you want, this error means the metadata in your project refers to an older version of subversion. Upgrade it by following this guide: http://www.robsearles.com/2008/12/svn-client-is-too-old-to-work-with-working-copy-solution-using-rsync/

如果你确实安装了 svn 并在你想要的正确版本上运行,这个错误意味着你项目中的元数据是指旧版本的 subversion。按照本指南进行升级:http: //www.robsearles.com/2008/12/svn-client-is-too-old-to-work-with-working-copy-solution-using-rsync/

回答by Ahsan

I had this same issue on OSX. I have been able to upgrade the SVNby following the step by step guide here:

我在 OSX 上遇到了同样的问题。我已经能够SVN按照此处的分步指南进行升级:

URL: http://andowebsit.es/blog/noteslog.com/post/how-to-upgrade-subversion-on-osx/

网址:http: //andowebsit.es/blog/noteslog.com/post/how-to-upgrade-subversion-on-osx/

First check which svnversion you have:

首先检查svn您的版本:

$ svn --version
  svn, version 1.7.17 (r1591372)
  compiled Aug  7 2014, 17:03:25
  ...

Seems like its old version, so update it.

似乎是旧版本,所以更新它。

$ brew update
$ brew install subversion

This will take some seconds to install. Now check how many svnyou have. You will see the another entry belew.

这将需要几秒钟的时间来安装。现在检查svn你有多少。您将看到下面的另一个条目。

$ which -a svn
 /usr/bin/svn
 /usr/local/bin/svn

Edit the ~/.bash_profilewith

编辑~/.bash_profile

export PATH="/usr/local/bin:$PATH"

And then

进而

$ source ~/.bash_profile

$ svn --version
svn, version 1.8.10 (r1615264)
compiled Aug 25 2014, 10:57:58 on x86_64-apple-darwin13.3.0
...

Now you will see the SVNverison is upgraded from 1.7to 1.8.

现在您将看到SVN版本从 升级1.71.8.

回答by Amol Vishwas Jadhav

Thanks to all for their solution. I was struggling with this issue for couple of days. I had installed old version 1.7 with PC login of Cygwin environment. Later i had to install version 1.9 because i wanted to use svn command. For most of the time i was looking for a file /.bash_profile on my PC or file which would have path usr/local/bin.

感谢所有人的解决方案。我在这个问题上挣扎了几天。我已经安装了旧版本 1.7 和 Cygwin 环境的 PC 登录。后来我不得不安装 1.9 版,因为我想使用 svn 命令。大多数时候,我都在我的 PC 上寻找文件 /.bash_profile 或路径为 usr/local/bin 的文件。

But i always found path cygwin/usr/local/bin. I kept neglecting it.

但我总是找到路径 cygwin/usr/local/bin。我一直忽视它。

After doing so many trial and error, i took simple chance. Went to Environment Variable PATH, and cut path "C:\Program Files\TortoiseSVN\bin\bin" and pasted before "cygwin/usr/local/bin"

经过如此多的反复试验,我抓住了一个简单的机会。转到环境变量PATH,并剪切路径“C:\Program Files\TortoiseSVN\bin\bin”并粘贴在“cygwin/usr/local/bin”之前

And later svn --version detected my latest version 1.9 :)

后来 svn --version 检测到我的最新版本 1.9 :)

回答by Heri

Same problem here (SVN 1.8 client on W7, STS 3.6.3, eclipse-plugin: subversive SVN Team provider 1.1.x and SVNKit Implementation 3.0.x).

这里有同样的问题(W7 上的 SVN 1.8 客户端,STS 3.6.3,eclipse-plugin:subversive SVN Team provider 1.1.x 和 SVNKit Implementation 3.0.x)。

Upgrading (in STS) the SVN Team provider to 2.03.x and SVNKit to 4.1.2 solved the problem.

将(在 STS 中)SVN Team provider 升级到 2.03.x 和 SVNKit 到 4.1.2 解决了这个问题。

回答by Nestor Urquiza

Got this error ON MAC OS X but you believe you have available the right version?

在 MAC OS X 上遇到此错误,但您认为您有正确的版本?

First look at how many svn

先看看svn有多少

$ which -a svn
/usr/local/bin/svn
/usr/bin/svn
/usr/local/bin/svn

Look at the output for each of the output using the --version flag. You might notice that the default which output is not the same as the default command output:

使用 --version 标志查看每个输出的输出。您可能会注意到默认 which 输出与默认命令输出不同:

$ command -v svn
/usr/bin/svn
$ which svn
/usr/local/bin/svn

You might be tempted to update some symlinks or your PATH variable but before doing so try from a new console, it might be just that you are hitting a console open before you installed the latest version. I would even try restarting before attempting to change PATH or symlinks.

您可能想要更新一些符号链接或您的 PATH 变量,但在这样做之前尝试从新控制台尝试,可能只是您在安装最新版本之前打开了控制台。我什至会在尝试更改 PATH 或符号链接之前尝试重新启动。

回答by Aaren Shar

Easiest way:
1. execute which -a svnin terminal;
2. modify the enviroment file(like ~/.bash_profile), and use the older version svn;
3. checkout svn code with your older svn;
4. import it into your IDE;
5. DONE.

最简单的方法:
1.which -a svn在终端执行;
2.修改环境文件(如~/.bash_profile),使用旧版本svn;
3. 用旧的 svn 签出 svn 代码;
4. 将其导入到您的 IDE 中;
5. 完成。

回答by sanoj

I had similar issue in my program while checking out code from SVN through my Java program .

通过我的 Java 程序从 SVN 检出代码时,我的程序中遇到了类似的问题。

TO resolve i closed the eclipse workspace and deleted the folder in which i was checking out the files on my local directory.It worked for me.

为了解决这个问题,我关闭了 eclipse 工作区并删除了我在本地目录中检出文件的文件夹。它对我有用。