eclipse SVN 错误“似乎是 Subversion 1.7 或更高版本工作副本的一部分”,svn 版本为 2.0.3
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28528141/
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
SVN error "appears to be part of a Subversion 1.7 or greater working copy" with svn version 2.0.3
提问by anoss
Here is it full error that I get in Eclipse Juno when I try to commit my project through SVN
当我尝试通过 SVN 提交我的项目时,这是我在 Eclipse Juno 中遇到的完整错误
appears to be part of a Subversion 1.7 or greater working copy. Please upgrade your Subversion client to use this working copy.
I don't understand why I get this since my SVN client version is the latest one. (2.0.3)!
我不明白为什么我得到这个,因为我的 SVN 客户端版本是最新的。(2.0.3)!
回答by David W.
From Subversion 1.1 to Subversion 1.6, the layout of the Subversion client working directory did not change. In revision 1.7, it changed, and in 1.8, it changed again. This has caused a lot of consternation in people who share a working directory with more than one Subversion client.
从 Subversion 1.1 到 Subversion 1.6,Subversion 客户端工作目录的布局没有改变。在 1.7 版中,它发生了变化,在 1.8 中,它再次发生了变化。对于与多个 Subversion 客户端共享工作目录的人来说,这引起了很多惊愕。
Both Subversive and Subclipse, the two main Subversion clients for Eclipse actually pass off the work of creating the Subversion working directory to either SVNKit or to JavaHL -- what are called the _SVN Connectors. It's these two SVN Connectorsthat must match the version of your working directory. Don't check Subversive or Subclipse's version. Check out the SVN Connectorversion.
Subversive 和 Subclipse,Eclipse 的两个主要 Subversion 客户端实际上都将创建 Subversion 工作目录的工作交给了 SVNKit 或 JavaHL —— 即所谓的 _SVN 连接器。正是这两个SVN 连接器必须与您的工作目录的版本相匹配。不要检查 Subversive 或 Subclipse 的版本。查看SVN 连接器版本。
If you go to your preferences, into Team->SVN, you will see a tab for the SVN Connector. Check the version of your SVN Connector(whether JavaHL or SVNKit), and make sure you're using the right version. In your case, it should be 1.7.
如果您转到您的首选项,进入 Team->SVN,您将看到SVN 连接器的选项卡。检查您的SVN 连接器的版本(无论是 JavaHL 还是 SVNKit),并确保您使用的是正确的版本。在您的情况下,它应该是 1.7。
The most common reason to see this error is because you're using two different Subversion clients on the same working directory (which is officially not supported, but everyone does it anyway).
看到此错误的最常见原因是因为您在同一工作目录中使用了两个不同的 Subversion 客户端(官方不支持,但每个人都这样做)。
For example, are you using TortoiseSVN or the Subversion command line client, and also the Eclipse client on the same working directory, you naughty spawn?
例如,您是否使用 TortoiseSVN 或 Subversion 命令行客户端,以及同一工作目录上的 Eclipse 客户端,您是顽皮的生成吗?
Confession time: I do it all the time. I find there are times when it's just damn easier to use the command line client to do certain jobs rather than struggle with the Eclipse client. For example, I can do svn log
and do a grep
filter to quickly find the revision I want rather than going through Eclipse. If you do this type of stuff, make sure your Subversion clients are all on the same general version (1.6 vs. 1.7 vs. 1.8).
忏悔时间:我一直这样做。我发现有时使用命令行客户端来完成某些工作比使用 Eclipse 客户端要容易得多。例如,我可以做svn log
一个grep
过滤器来快速找到我想要的修订版,而不是通过 Eclipse。如果您执行此类操作,请确保您的 Subversion 客户端都使用相同的通用版本(1.6 对 1.7 对 1.8)。
Okay, you're a good boy and don't use different Subversion clients on the same working copy. Now what happened? In that case, I suspect you accidentally changed the SVN Connectorversion without realizing it -- either through an update, or in the settings. You can have multiple SVN Connectorversions at the same time, and I believe each project can have different ones too.
好的,你是个好孩子,不要在同一个工作副本上使用不同的 Subversion 客户端。现在发生了什么?在这种情况下,我怀疑您在没有意识到的情况下意外更改了SVN 连接器版本——无论是通过更新,还是在设置中。您可以同时拥有多个SVN Connector版本,我相信每个项目也可以有不同的版本。
Again, check your SVN Connectorversion, and make sure it's correct.
再次检查您的SVN 连接器版本,并确保它是正确的。
回答by James Drinkard
I also got this error trying to run this command:
尝试运行此命令时,我也遇到此错误:
svn co http://subversion.<path to trunk>/<project name>/
svn co http://subversion.<path to trunk>/<project name>/
from a command prompt. I wasn't in the workspace projectdirectory, just the workspace directory. We had the correct version of 1.8, but because I was in the wrong directory, not the project directory, I got this same error as listed above.
从命令提示符。我不在工作区项目目录中,只是在工作区目录中。我们有正确的 1.8 版本,但是因为我在错误的目录中,而不是在项目目录中,所以我遇到了与上面列出的相同的错误。
回答by sgrossman
For me the problem was that I copied & pasted a package from an Eclipse workspace with an older SVN client.
I didn't know that in the background, along with the package, a .svn directory was copied as well. So when I tried to commit it I got this error.
Deleting the .svn directory solved the problem.
对我来说,问题是我使用旧的 SVN 客户端从 Eclipse 工作区复制并粘贴了一个包。
我不知道在后台,连同包一起,一个 .svn 目录也被复制了。所以当我尝试提交它时,我收到了这个错误。
删除 .svn 目录解决了这个问题。
回答by bahrep
There is no Apache Subversion 2.x. Subversion 1.8 is the latest release so far. You use Subversive 2.x which should work with Subversion 1.7 and 1.8 working copies without any issues.
没有 Apache Subversion 2.x。Subversion 1.8 是迄今为止的最新版本。您使用 Subversive 2.x,它应该可以与 Subversion 1.7 和 1.8 工作副本一起使用而不会出现任何问题。
- Make sure that you actually run the latest Subversive version,
- Attempt upgrading your local working copy using
svn upgrade
command, - Try checking out a fresh working copy from a repository and see whether you get any errors.
- 确保您实际运行的是最新的 Subversive 版本,
- 尝试使用
svn upgrade
命令升级您的本地工作副本, - 尝试从存储库中检出一个新的工作副本,看看是否有任何错误。