使用Eclipse中的SVN和终端提示符

时间:2022-12-18 01:19:14

I run ubuntu, and thus of cause I like the terminal prompt. I run most svn commands from the prompt. But I have a problem... I checkout my code using the svn in a terminal:

我运行ubuntu,因此我喜欢终端提示。我从提示符运行大多数svn命令。但我有一个问题...我在终端使用svn检查我的代码:

svn co <svn-url> <local dir>

nice...

Now I go to eclipse and do the development... I have subeclipse and lets say that I do a commit from the svn/eclipse gui. Now if I go back to svn in a terminal and do:

现在我去eclipse并进行开发......我有subeclipse并且让我说我从svn / eclipse gui做了一个提交。现在,如果我回到终端的svn并执行:

svn commit 

I get this:

我明白了:

svn: This client is too old to work with working copy '/home/marhin/dev/trunk'. 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.

svn:这个客户端太旧了,无法使用工作副本'/ home / marhin / dev / trunk'。您需要获得更新的Subversion客户端,或者降级此工作副本。有关详细信息,请参见http://subversion.tigris.org/faq.html#working-copy-format-change。

I have checked the link and as far as I can see i does not help me... My svn version is:

我检查了链接,据我所知,我没有帮助我...我的svn版本是:

svn --version
svn, version 1.5.4 (r33841)
compiled Feb 23 2009, 20:42:53

my Subversion Client adapter version is: 1.6.0.2

我的Subversion客户端适配器版本是:1.6.0.2

Thanks

4 个解决方案

#1


You can use change-svn-wc-format.py which can reform your workingcopy version to an older one. this is especially nice, if you are using eclipse, as they need some time to get to the current version. If you are used to command line jjust start this script after your last svn command and switch back to eclipse.

您可以使用change-svn-wc-format.py,它可以将您的工作复制版本改为旧版本。如果你使用eclipse,这是特别好的,因为他们需要一些时间来获得当前版本。如果您习惯于命令行jjust在最后一个svn命令之后启动此脚本并切换回eclipse。

#2


I guess you answered your question. The Subversion Client you have is newer than the version you have on the command line.

我想你回答了你的问题。您拥有的Subversion客户端比您在命令行上拥有的版本更新。

You checked out the repository with an older version, Eclipse updated the files with the new version, and then your command line client starts screaming.

您使用旧版本检出了存储库,Eclipse使用新版本更新了文件,然后命令行客户端开始尖叫。

The easiest solution in your case would be updating your svn command line client.

在您的情况下,最简单的解决方案是更新您的svn命令行客户端。

#3


I've seen the same problem since I often switch between SVN clients. You need to ensure that your Eclipse SVN client is compatible with your command line client. (Either upgrade your command line client or downgrade your eclipse client.) If you do that, what you're doing will work fine.

我经常看到同样的问题,因为我经常在SVN客户端之间切换。您需要确保Eclipse SVN客户端与命令行客户端兼容。 (升级您的命令行客户端或降级您的eclipse客户端。)如果您这样做,您正在做的将正常工作。

#4


When Subversion changes the working copy version in a release (such as 1.5.x -> 1.6.x), any 1.5.x working copy is silently upgraded to the 1.6.x format as soon as it is touched by a 1.6.x client. This is pretty clearly stated in the release notes of 1.6.x.

当Subversion更改发行版中的工作副本版本(例如1.5.x - > 1.6.x)时,任何1.5.x工作副本在1.6.x客户端触及后立即以静默方式升级到1.6.x格式。这在1.6.x的发行说明中已经清楚地说明了。

The standard way of dealing with this is to upgrade all your clients at the same time.

处理此问题的标准方法是同时升级所有客户。

#1


You can use change-svn-wc-format.py which can reform your workingcopy version to an older one. this is especially nice, if you are using eclipse, as they need some time to get to the current version. If you are used to command line jjust start this script after your last svn command and switch back to eclipse.

您可以使用change-svn-wc-format.py,它可以将您的工作复制版本改为旧版本。如果你使用eclipse,这是特别好的,因为他们需要一些时间来获得当前版本。如果您习惯于命令行jjust在最后一个svn命令之后启动此脚本并切换回eclipse。

#2


I guess you answered your question. The Subversion Client you have is newer than the version you have on the command line.

我想你回答了你的问题。您拥有的Subversion客户端比您在命令行上拥有的版本更新。

You checked out the repository with an older version, Eclipse updated the files with the new version, and then your command line client starts screaming.

您使用旧版本检出了存储库,Eclipse使用新版本更新了文件,然后命令行客户端开始尖叫。

The easiest solution in your case would be updating your svn command line client.

在您的情况下,最简单的解决方案是更新您的svn命令行客户端。

#3


I've seen the same problem since I often switch between SVN clients. You need to ensure that your Eclipse SVN client is compatible with your command line client. (Either upgrade your command line client or downgrade your eclipse client.) If you do that, what you're doing will work fine.

我经常看到同样的问题,因为我经常在SVN客户端之间切换。您需要确保Eclipse SVN客户端与命令行客户端兼容。 (升级您的命令行客户端或降级您的eclipse客户端。)如果您这样做,您正在做的将正常工作。

#4


When Subversion changes the working copy version in a release (such as 1.5.x -> 1.6.x), any 1.5.x working copy is silently upgraded to the 1.6.x format as soon as it is touched by a 1.6.x client. This is pretty clearly stated in the release notes of 1.6.x.

当Subversion更改发行版中的工作副本版本(例如1.5.x - > 1.6.x)时,任何1.5.x工作副本在1.6.x客户端触及后立即以静默方式升级到1.6.x格式。这在1.6.x的发行说明中已经清楚地说明了。

The standard way of dealing with this is to upgrade all your clients at the same time.

处理此问题的标准方法是同时升级所有客户。