Subversion 的奇怪问题——“文件已经存在"尝试重新创建曾经在我的存储库中的目录时 [英] Strange problem with Subversion - "File already exists" when trying to recreate a directory that USED to be in my repository
问题描述
所以 - 我以前有一个名为 mysql 的目录,前几次修订.我删除了它,并决定重新开始 - 但是当我尝试创建新的 mysql 目录时 - 我一直遇到文件已经存在"错误:
So - I used to have a directory called mysql a few revisions ago. I deleted it, and decided to start over - but when I try to create the new mysql directory - I keep running into the 'File Already Exists' error:
support:/etc/puppet/modules# mkdir mysql
support:/etc/puppet/modules# svn add mysql/
A mysql
support:/etc/puppet/modules# svn commit -m " Test"
Adding modules/mysql
svn: Commit failed (details follow):
svn: File already exists: filesystem '/var/lib/svn/puppet/db', transaction '11-r', path '/trunk/modules/mysql'
support:/etc/puppet/modules# svn delete mysql
svn: Use --force to override this restriction
svn: 'mysql' has local modifications
support:/etc/puppet/modules# svn --force delete mysql
D mysql
我看到其他一些帖子建议强制更新
I saw some other posts suggest forcing an update
support:/etc/puppet/modules# svn status
support:/etc/puppet/modules# svn update
At revision 11.
support:/etc/puppet/modules# svn mkdir mysql
A mysql
support:/etc/puppet/modules# svn commit -m "Test"
Adding modules/mysql
svn: Commit failed (details follow):
svn: File already exists: filesystem '/var/lib/svn/puppet/db', transaction '11-s', path '/trunk/modules/mysql'
推荐答案
我设法解决了这个问题在其中,并重新检查新信息.尽管我很好奇是否有人对那里发生的事情有更好的解释.
I managed to work around it by reverting back to the last version that I had the mysql directory in, then deleting the contents of the directory, putting the new contents in it, and checking the new information back in. Although I'm curious if anyone has a better explanation for what the heck was going on there.
这篇关于Subversion 的奇怪问题——“文件已经存在"尝试重新创建曾经在我的存储库中的目录时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!