我有一个名为 old dir 的目录(一个 Maven 项目)。
我通过在 Tortoisesvn 中执行 svn 重命名将名称更改为新目录。
如果您执行 svn status,我看到它在新目录上完成了 SVN add,在旧目录上完成了 svn delete。在 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
最佳答案
由于该目录是maven项目,新目录中有未版本化的文件。新目录上的 mvn clean
意味着新旧目录匹配,因此允许 svn 提交。
关于svn - 重命名目录,现在 SVN 不允许我提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29563635/