【发布时间】:2014-03-01 15:01:21
【问题描述】:
我正在使用 Aptana 开发一个 ColdFusion 网站。我们正在使用 SVN 进行版本控制。
我重命名了几个文件,现在正尝试提交其中一个,但出现以下错误:
'SVN Commit' has encountered a problem.
org.apache.subversion.javahl.ClientException: Illegal target for the requested operation
svn: Commit failed (details follow):
svn: Cannot commit 'R:\myPath\My-New-File-Name.cfm' because it was moved from 'R:\myPath\My-Old-File-Name.cfm' which is not part of the commit; both sides of the move must be committed together
这似乎表明我需要同时提交以前的文件(已重命名)和新的重命名文件。如何提交不再存在的文件...?
【问题讨论】:
-
重命名目录会出现类似问题:stackoverflow.com/questions/29563635/…
-
Windows 不区分大小写,如果重命名文件只更改大小写,则会出现此错误,因此请将文件重命名为其他名称(例如 file2),提交,然后重命名为您真正想要的名称并再次提交。
-
@Loenix:TortoiseSVN 应该同时处理这种特殊情况,因此在 Windows 上不再需要使用两次重命名。