【发布时间】:2013-01-31 19:07:18
【问题描述】:
我有一个这样的文件夹结构:
A/B/C/hello.txt
我使用 svn mv 将 A 重命名为 Z:
Z/B/C/hello.txt
然后我对 hello.txt 做了一些修改。现在,svn status 给出:
D A/B/C/hello.txt
A+ Z
M+ Z/B/C/hello.txt
当我尝试提交时,我收到以下错误消息:
'Z/B/C' is not under version control and is not part of the commit, yet its child 'Z/B/C/hello.txt' is part of the commit
【问题讨论】:
-
看到这个问题,接受的答案可能会有所帮助:stackoverflow.com/questions/3941291/…
-
尝试更改文件夹名称,提交更改,然后对文件本身进行更改
-
该帖子建议在重命名之前确保您完全是最新的,我就是这样。
-
所以基本上,解决方案是在两个单独的提交中执行此操作,因为 svn 不直接在单个提交中支持这些操作。这会是一个正确的评估吗?如果是这样,我会把它作为答案并接受它。