问题:
在ubuntu 11.10中,使用kdesvn的copy功能为原来的目录做了备份,在备份目录中修改了源代码文件,然后提交更改时,kdesvn给出错误提示:
Entry for '~/hwsvn/2sw/1prj_linux/pdu/src/branches/pdu-isocket-dbg-wan' is marked as 'copied' but is not itself scheduled for addition. Perhaps you're committing a target that is inside an unversioned (or not-yet-versioned) directory?
解决办法:
1. 放狗搜,看到一种办法很有效:
a. 先把源代码的更改做个备份,将原目录删除;
实际操作中,直接将~/hwsvn/2sw/1prj_linux/pdu/src/branches/pdu-isocket-dbg-wan改为~/hwsvn/2sw/1prj_linux/pdu/src/branches/pdu-isocket-dbg-wan-bak;
b. kdesvn中提示~/hwsvn/2sw/1prj_linux/pdu/src/branches/pdu-isocket-dbg-wanmissing,使用update功能重新update出来;
c. 将源代码的改动重新反映到~/hwsvn/2sw/1prj_linux/pdu/src/branches/pdu-isocket-dbg-wan中;
d. 提交代码的更新;
这样就可以了。
问题解决。
本文详细介绍了在Ubuntu 11.10环境下,使用kdesvn进行代码备份并在此基础上修改文件,最后尝试提交更改时遇到错误的具体解决方案。通过将备份目录更名、重新更新文件以及最终成功提交代码的步骤,解决了错误提示Entry for '目录路径' is marked as 'copied' but not itself scheduled for addition的问题。

被折叠的 条评论
为什么被折叠?



