我有一个像这样的文件夹结构:
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
答案 0 :(得分:10)
Commands and their output to rename SVN folder in above example are shown below: # svn mv A Z A Z D A/B/C/hello.txt D A/B/C D A/B D A # ls A Z # rm -rf A #ls Z # svn st D A A + Z # svn ci -m "Commit message." Deleting source/A Adding source/Z Committed revision 307. # svn st # ls -R .: Z ./Z: B ./Z/B: C ./Z/B/C: hello.txt