重命名svn中的目录

我有一个像这样的文件夹结构:

A/B/C/hello.txt

我使用svn mv将A重命名为Z:

Z/B/C/hello.txt

然后我对hello.txt进行了一些修改.现在,svn状态给出:

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
最佳答案
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

转载注明原文:重命名svn中的目录 - 代码日志