AnkhSVN - 在Visual Studio中重命名(更改其大小写)文件

use*_*754 12 svn version-control tortoisesvn ankhsvn visual-studio

当我尝试将文件Class1.cs重命名为VS内的class1.cs然后尝试通过ankhSVN提交项目时,我得到两个错误:

[...\Class1.cs] is already under version control.


The commit processing can't commit [...\Class1.cs], because it is not managed by Subversion. Maybe you should refresh the status after applying changes with another client?
Run Code Online (Sandbox Code Playgroud)

然后我删除了class1.cs,添加了一个新的class1.cs,尝试提交它但收到了同样的错误.我如何解决这个问题,以便我可以改变案例并仍能提交?我知道Windows是案例性的,但是不应该有一种(简单的)方法吗?

在与ankhSVN玩了一点之后,然后尝试使用其原始名称提交文件(所以我至少在版本控制中将其恢复)我得到了:

An internal error occured. Commit failed (details follow):  Cannot commit: '[...]\Class1.cs' because it was moved to '[...]\class1.cs' which is not part of the commit; both sides of the move must be committed together

SharpSvn.SvnIllegalTargetException...
Run Code Online (Sandbox Code Playgroud)

我正在使用

  • Windows 7 64
  • Visual Studio 2012
  • TortoiseSVN 1.8.4
  • ankhSVN 2.5.12266.473

Sel*_*wyn 12

您可以在Visual Studio + ankhSVN中执行此操作.

  1. 复制/粘贴要重命名的文件并将其粘贴到同一文件夹中

  2. 将文件从"Copy of xxxx"重命名为所需的新名称.

  3. 删除旧文件

  4. 右键单击两个文件所在的文件夹,并对整个文件夹执行svn commit操作.

而已!

  • 简单地说,您唯一要做的就是从Windows资源管理器中提交父文件夹.其他所有内容,如重命名和复制都可以从VS IDE完成. (2认同)