eclipse 将文件提交到 SVN 存储库的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/528327/
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
Problems committing file to SVN repository
提问by Boris Pavlovi?
I have a maven pom build file in the root directory of my project. When trying to synchronize with SVN repository from Eclipse (Europa), red double directed arrow is being added to the file icon. This means that both my local copy and the one in the repository have been changed since last synchronization.
我的项目的根目录中有一个 maven pom 构建文件。当尝试从 Eclipse (Europa) 与 SVN 存储库同步时,红色双向箭头被添加到文件图标。这意味着自上次同步以来,我的本地副本和存储库中的副本都已更改。
When I try to do do 'Override and update...' error message is being thrown:
当我尝试执行“覆盖和更新...”时抛出错误消息:
Some resources were not reverted.
Attempted to lock an already-locked dir
svn: Working copy 'C:\Java\workspaces\pro\myProject-TRUNK' locked
Do you have an idea what should be done in this case?
你知道在这种情况下应该怎么做吗?
回答by benlumley
svn cleanup ?
svn 清理?
not sure how you'd do that from eclipse though ... but if its a standard svn working copy, you should still be able to do it with another tool.
不知道你会如何从 Eclipse 中做到这一点......但如果它是一个标准的 svn 工作副本,你应该仍然可以使用另一个工具来做到这一点。
回答by MADHAIYAN M
In Eclipse, to do SVN clean up
在Eclipse中,做SVN清理
Right Click on Locked Project -> Team ->Cleanup
右键单击锁定的项目 -> 团队 -> 清理
回答by Vaishali Kulkarni
delete the .loc and .log files from the directory if Team->Cleanup is not available to you from subeclipse and update the resources giving you the error message earlier.
如果您无法从 subeclipse 中使用 Team->Cleanup,请从目录中删除 .loc 和 .log 文件,并更新资源,并更早地为您提供错误消息。
回答by Silent_Rebel
This normally happens when you paste a directory into another in your project.
当您将目录粘贴到项目中的另一个目录时,通常会发生这种情况。
You have to create the directories manually, then paste all the files.
您必须手动创建目录,然后粘贴所有文件。
To solve the issue:
要解决这个问题:
- Right click on the project (or on a parent directory)
- Then team
- Then clean up
- 右键单击项目(或父目录)
- 然后组队
- 然后清理
回答by stephendl
It looks like the repository has got a bit confised! You could try a 'svn cleanup' in the project directory.
看起来存储库有点被泄露了!您可以在项目目录中尝试“svn cleanup”。
You can do it on the command line, or using a different tool...
您可以在命令行上执行此操作,也可以使用其他工具...
From the command prompt, you'll have to have subversion installed and on the PATH. Close Eclipse, open up a command prompt and cd to the root of the project, then type 'svn cleanup'.
在命令提示符下,您必须在 PATH 上安装 subversion。关闭 Eclipse,打开命令提示符并 cd 到项目的根目录,然后键入“svn cleanup”。
You could also use Tortoise SVNto do the same from Windows Explorer. Install Tortoise SVN and close Eclipse. Within Windows Explorer, navigate to the parent of your project directory, right click on the project folder and select 'Tortoise SVN' -> 'Clean up'
您也可以使用Tortoise SVN从 Windows 资源管理器中执行相同的操作。安装 Tortoise SVN 并关闭 Eclipse。在 Windows 资源管理器中,导航到项目目录的父目录,右键单击项目文件夹并选择“Tortoise SVN”->“清理”
回答by Kamalakar Dandu
This happens if we have some pending sessions on committing our changes so we'll need to do some clean up before we'll have another try on committing our changes. This is how to do it.
如果我们在提交更改时有一些待处理的会话,就会发生这种情况,因此我们需要进行一些清理,然后再尝试提交更改。这是如何做到的。
- Click to Team->Clean Up
- Try again to commit..
- 点击加入团队->清理
- 再次尝试提交..
回答by Furetto
it's working for me.
它对我有用。
add svn application
添加 svn 应用程序
sudo apt-get install svn
cd <folder-project-name>
svn cleanup
回答by Zumry Mohamed
Restart your eclipse (IDE) . Problem Solved.
重新启动您的日食 (IDE)。问题解决了。
回答by Vijay Bhatt
Right-click on project-->Team-->Refresh/Cleanup
右键单击项目-->团队-->刷新/清理
回答by Dinesh Khetarpal
I went to local svn folder and removed the log file and lock files did the svn update from eclipse and everything back on track
我去了本地 svn 文件夹并删除了日志文件和锁定文件,从 Eclipse 进行了 svn 更新,一切都回到了正轨