我有一个名为 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
一个相关问题:重命名文件,现在 SVN 不允许我提交? https://stackoverflow.com/questions/21572877/renamed-file-now-svn-not-allowing-me-to-commit
由于该目录是一个 Maven 项目,因此新目录中存在未版本控制的文件。mvn clean
在新目录上意味着新旧目录匹配,因此允许 svn 提交。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)