xcode Windows 中的 TortoiseSVN 结帐问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1991821/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:01:47  来源:igfitidea点击:

TortoiseSVN checkout problem in Windows

svnxcodetortoisesvnfilenames

提问by Vanwaril

The problem is that I'm checking out some files with special characters in their filenames -- when TortoiseSVN attempts to check the code out, it can't create those files and the checkout fails. this applies to updating as well. Is there any fix/workaround to this, maybe to give an alternate filename or something?

问题是我正在检出一些文件名中带有特殊字符的文件——当 TortoiseSVN 尝试检出代码时,它无法创建这些文件并且检出失败。这也适用于更新。对此是否有任何修复/解决方法,也许可以提供备用文件名或其他什么?

Update:Apparently, those files are created by xcode. Does anyone know what they do? Will it break the build if I change the filenames, like all the >to -or something?

更新:显然,这些文件是由 xcode 创建的。有谁知道他们是做什么的?如果我更改文件名,比如所有的>to-或其他东西,它会破坏构建吗?

采纳答案by Pekka

I don't think this can be done. As far as I know, both global-ignoreand svn:ignoreserve to keep files outof the repository only. The only solution I can think of is to check out the whole repository on OS X, make the changes, check the code, and import them back.

我不认为这是可以做到的。据我所知,双方global-ignoresvn:ignore有助于保持文件仅存储库。我能想到的唯一解决方案是在 OS X 上检查整个存储库,进行更改,检查代码,然后将它们导入回来。

If the files are generated automatically by some tool, you should be able to set up ignorerules that prevent them from coming into the repository again, depending on what the file names look like.

如果文件是由某个工具自动生成的,您应该能够设置ignore规则以防止它们再次进入存储库,具体取决于文件名的外观。

Additional idea:You couldtry mount an OS X partition/drive to your Windows system and see whose naming rules apply. I think however, that Windows generally forbids the use of reserved charactersin all files it handles, no matter whether the target file system would support them or not.

附加想法:可以尝试将 OS X 分区/驱动器安装到您的 Windows 系统,并查看适用的命名规则。然而,我认为 Windows 通常禁止在它处理的所有文件中使用保留字符,无论目标文件系统是否支持它们。

回答by RedFilter

If you have write access, you can rename the files directly in the repo by using repo browser without having to actually check out the file first.

如果您有写权限,则可以使用 repo 浏览器直接在 repo 中重命名文件,而无需先实际检出文件。