问题描述
基本上,我必须在同一台服务器上回购:
Basically I have to repo on the same server:
svn://repo/foo
-> checked out to d:\foo
svn://repo/bar
-> d:\foo has an svn:external property set to check this out into d:\foo\bar
当"svn:update"或新的"svn:checkout"时,这是该错误的依据:
When an "svn:update" or a new "svn:checkout" this is gist of the error:
Command - Update
Updated - D:\foo
External - D:\foo\bar
External failed - D:\foo\bar
Error - d:\foo\bar is already locked via d:\foo
清除"或手动释放锁后,问题仍然存在.
After I "clean" or manually release the lock, the problem still persists.
任何见解将不胜感激.谢谢!
Any insights would be greatly appreciated. Thanks!
更新:
Attila在评论中添加了它.我的存储库中存在"foo/bar".
Attila nailed it in the comment. I had "foo/bar" existing in the repository.
供将来参考-使用SVN:External属性时,SVN 将创建外部参考的目标文件夹.
For future reference - when using SVN:External property, SVN will create the destination folder for the external reference.
推荐答案
在评论中得到解决(同样也要有正确的答案):
As resolved in the comments (just to have it in proper answer as well):
使用svn:externals时,原始存储库中不应存在检出外部存储库的目录
When using svn:externals, the directory where the externals repository is checked out should not exist in the original repository
这篇关于SVN外部存储库“已被锁定".更新时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!