重命名目录,现在SVN不允许我提交

时间:2015-04-10 14:09:29

标签: svn tortoisesvn

我有一个名为old dir的目录(maven项目)。

我通过在Tortoisesvn中进行svn重命名将名称更改为新目录。

如果你做svn状态,我看到它在新目录上完成了SVN添加,并在旧目录上执行了svn删除。在Tortoisesvn下提交时,目录及其内容被列为添加或删除,因此看起来两个“边”都被提交。但是,提交会产生此错误。

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

相关问题: Renamed file, now SVN not allowing me to commit?

2 个答案:

答案 0 :(得分:0)

由于目录是maven项目,新目录中有未版本控制的文件。新目录上的mvn clean意味着旧目录和新目录匹配,因此允许svn提交。

答案 1 :(得分:-1)

错误消息已经建议解决方案:您应该提交移动的两侧。即原始和新的位置或他们的共同父母。