在 XCode 提交期间,感叹号符号对文件意味着什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9122228/
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 23:12:00  来源:igfitidea点击:

What does exclaimation point symbol mean for files during XCode commit?

iosxcode

提问by ChrisP

When committing changes to an SVN repository from within XCode some of the files have the "!" symbol in the right column (see screen capture).

从 XCode 中提交对 SVN 存储库的更改时,某些文件带有“!” 右栏中的符号(请参阅屏幕截图)。

enter image description here

在此处输入图片说明

What does this symbol mean and what should I do w/ these files? It seems to be any time a file is deleted from the project.

这个符号是什么意思,我应该怎么处理这些文件?似乎任何时候从项目中删除文件。

采纳答案by aroth

It means that the file is known to the version control system, but missing or damaged locally. Here's a list of SVN status codes:

这意味着版本控制系统知道该文件,但在本地丢失或损坏。以下是 SVN 状态代码列表:

http://knaddison.com/technology/svn-status-code-cheat-sheet

http://knaddison.com/technology/svn-status-code-cheat-sheet

Often the solution to this problem is to go into the folder containing these files, and remove the .svnfolder from it. In particular, this should work if the problem started happening after you copied/imported folders/files from another project (already under version control) into your current project. The issue is that the .svnfolders are not portable cross project/repository. Trying to import a .svnfolder from somewhere else just causes the version control system to get confused.

通常,解决此问题的方法是进入包含这些文件的.svn文件夹,然后从中删除该文件夹。特别是,如果在您将另一个项目(已在版本控制下)中的文件夹/文件复制/导入到当前项目后问题开始发生,这应该有效。问题是这些.svn文件夹不是可移植的跨项目/存储库。尝试.svn从其他地方导入文件夹只会导致版本控制系统感到困惑。