简体   繁体   English

Eclipse 中的 SVN:无法提交某些文件夹

[英]SVN in Eclipse: Cannot commit certain folders

I'm using SVN within Eclipse.我在 Eclipse 中使用 SVN。 Whenever I change a file I commit the changes.每当我更改文件时,我都会提交更改。 It works for everything except for three certain folders (which contain certain files) I cannot commit.它适用于除我无法提交的三个特定文件夹(包含某些文件)之外的所有内容。 When trying to commit them I receive the following error message:尝试提交它们时,我收到以下错误消息:

在此处输入图像描述

workspace\yp\src\yp\forum\locale\cs is one of the three uncommitable folders. workspace\yp\src\yp\forum\locale\cs是三个不可提交的文件夹之一。 The folder definitely doesn't exist on the server yet, but I get the above error each time I'm trying to upload it.服务器上肯定不存在该文件夹,但是每次尝试上传时都会出现上述错误。

How do I solve the problem?我该如何解决这个问题?

EDIT: I've deleted the .svn folders from the problematic directories.编辑:我已经从有问题的目录中删除了.svn文件夹。 I still get the same error when trying to commit and the problematic directories have no .svn folders.尝试提交时我仍然遇到相同的错误,并且有问题的目录没有.svn文件夹。

EDIT: I'm still trying to fix the problem.编辑:我仍在尝试解决问题。 Now I get another error message when trying to commit:现在我在尝试提交时收到另一条错误消息:

在此处输入图像描述

EDIT: Now I've tried to do Team --> Cleanup and got that error message:编辑:现在我尝试做Team --> Cleanup并收到错误消息:

在此处输入图像描述

Move the problematic folders out of the way, then do Team->Update which will recreate the folders from the repository.将有问题的文件夹移开,然后执行Team->Update ,这将从存储库中重新创建文件夹。

Then you can copy your changed files back.然后,您可以将更改的文件复制回来。

This problem can arise when there are files in a folder checked into the repository that only differ in case - which is not supported in Windows.当检入存储库的文件夹中的文件仅在大小写不同时会出现此问题 - Windows 不支持这种情况。 So it might be worthwile to look at the repository with a repository browser - if it is http:// then the web browser will do.因此,使用存储库浏览器查看存储库可能是值得的 - 如果它是http://那么 web 浏览器就可以了。

try deleting.svn folder in your pc and try adding folder or file again.尝试删除您电脑中的.svn 文件夹,然后尝试再次添加文件夹或文件。

Extract your project from SVN to a new folder.将您的项目从 SVN 解压缩到一个新文件夹。

Erase all sourcecode files ( something like any file but.svn ) and replace with the ones from your previous working folder.删除所有源代码文件(类似于任何文件,但.svn)并替换为您之前工作文件夹中的文件。

Try Team/Cleanup in Eclipse (right click in Project explorer or Navigator)在 Eclipse 中尝试团队/清理(在项目资源管理器或导航器中单击鼠标右键)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM