开发者

svn moved files and now it wont commit

I moved some files from 1 directory to the other inside visual studio. Now when I try to commit those开发者_高级运维 files, it tells me the other directory is not found (i deleted it). Why does svn still need those directories?

/svn//trunk/Source/SampleRepoProject.Data/Domains/Interfaces' path not found <-- this is my previous and deleted directory. The files are moved to: /trunk/Source/SampleRepoProject.Domains/Interfaces

How can I fix this? do I need to go back to all those deleted directories and recreate them?

Using Ankh and tortoiseSVN.


Did you move the files or did you move a folder containing files?

Some IDE's move the .svn folder with the parent folder. This results in Very Bad Things as it relates to SVN. As a general rule, I create new folders and move files from the old location to the new without moving the original directory (and, consequently, the .svn folder). Then I delete the old directory.


TortoiseSVN has a feature to do this sort of thing safely. Drag the folder to a new location in Windows Explorer using the right-button instead of the left. When you release, a dialog window will pop up and give you the option to SVN Move/Copy the files/folders.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜