eclipse 将删除的目录提交到 SVN 存储库的问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/511196/
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-19 13:30:52  来源:igfitidea点击:

Problems committing deleted directory to SVN repository

eclipsesvnsubversive

提问by Boris Pavlovi?

I'm using Eclipse Europa with Subversive SVN plugin.

我正在使用带有 Subversive SVN 插件的 Eclipse Europa。

When try to commit deleted directory SVN returns this message:

当尝试提交已删除目录时 SVN 返回此消息:

Some of selected resources were not committed.
Item is out of date
svn: Commit failed (details follow):
svn: Item '/myProject/trunk/src/test/config' is out of date

Content of the folder has been already deleted and committed.

文件夹的内容已被删除并提交。

What can I do to commit it?

我能做些什么来提交它?

回答by David Grant

Try updating first, thendelete and commit.

尝试先更新,然后删除并提交。

回答by Kurru

Had this issue too. What solved it for me was the following

也有这个问题。为我解决的是以下问题

  • Update
  • Delete contents of folder
  • Commit
  • Update
  • Delete folder
  • Commit
  • 更新
  • 删除文件夹内容
  • 犯罪
  • 更新
  • 删除文件夹
  • 犯罪

Frustrating to have to do this in 2 stages!

令人沮丧的是必须分 2 个阶段来做到这一点!

回答by Frank Nguyen

Just delete the folder using Svn repository exploring, then update the project.

只需使用Svn repository explore删除文件夹,然后更新项目。

回答by sharma_kunal

Just right click on the Update to Head and then commit its works for me

只需右键单击 Update to Head,然后为我提交它的作品

回答by Jaganaath Jayakumar

I could see that this ticket is old but the below steps might help someone who is facing the issue.

我可以看到这张票是旧的,但以下步骤可能会对遇到问题的人有所帮助。

1. Update the parent folder.
2. Delete the folder you want to delete from the working repository.
3. Commit the parent folder.

I use Subclipse plugin in eclipse which has very user-friendly GUI to support Subversion. May be try if interested - https://marketplace.eclipse.org/content/subclipse

我在 Eclipse 中使用 Subclipse 插件,它具有非常用户友好的 GUI 来支持 Subversion。如果有兴趣可以尝试 - https://marketplace.eclipse.org/content/subclipse

Thanks

谢谢

回答by Jaganaath Jayakumar

I ran into this too, but I had already deleted the folder. Neither update nor commit would work, so I had to manually recreate the folder with the files in it, then follow the steps Kurru suggested.

我也遇到了这个,但我已经删除了该文件夹。更新和提交都不起作用,所以我必须手动重新创建包含文件的文件夹,然后按照 Kurru 建议的步骤操作。