Renamed directory, now SVN not allowing me to commit

*爱你&永不变心* 提交于 2019-12-12 15:53:12

问题


I had a directory (a maven project) called old dir.

I changed the name to new dir by doing an svn rename within Tortoisesvn.

If you do svn status, I see it's done an SVN add on the new dir and and an svn delete on the old dir. When committing under Tortoisesvn, the directories and their contents are listed as either added or deleted, so it does appear that both 'sides' are being committed. However, committing gives this error.

svn: Commit failed (details follow):
svn: Cannot commit 'path\to\new dir' because it was moved from 'path\to\old dir' which is not part of the commit; both sides of the move must be committed together

A related problem: Renamed file, now SVN not allowing me to commit?


回答1:


As the directory is a maven project, there were unversioned files in the new dir. mvn clean on the new dir meant that the old and new directories matched, and so the svn commit was then allowed.




回答2:


The error message already suggest solution: you should commit both sides of the moves. I.e. original and new location or common parent of them.



来源:https://stackoverflow.com/questions/29563635/renamed-directory-now-svn-not-allowing-me-to-commit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!