在 XCode 4.6 中使用 Subversion

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

Using Subversion with XCode 4.6

iosxcodesvn

提问by Isuru

I have little experience using VSS before. For iOS development, I have installed Subversion on a remote Windows machine and accessing it from my Mac. And I have a few gray areas to clear up.

我以前使用 VSS 的经验很少。对于 iOS 开发,我已经在远程 Windows 机器上安装了 Subversion 并从我的 Mac 访问它。我有一些灰色地带需要清理。

  1. Thisis one of the tutorials I followed. But its written based on an older version of XCode. The SCM tab in XCode preferences is not in XCode 4.6. Is it completely removed or moved somewhere else?

  2. The main reason to choose Subversion over Git was the ability to lock files in Subversion. I know you can do it through the Terminal. Is there a way to do it through XCode itself?

  3. Say I checkout an XCode project to my local mac. And locked a certain file. An another co-worker also checkout the same project to edit that same file I locked. I read that the other person can also edit that file but he cannot commit it back since it is locked. Is there a way to notify the other people that a certain file is locked at the time of checking out?

  4. In the repository, I have created the standard tags, branches and trunk folders. The project should be in trunk folder, right?

  1. 是我遵循的教程之一。但它是基于旧版本的 XCode 编写的。XCode 首选项中的 SCM 选项卡不在 XCode 4.6 中。是否完全移除或移至其他地方?

  2. 选择 Subversion 而不是 Git 的主要原因是能够在 Subversion 中锁定文件。我知道你可以通过终端来完成。有没有办法通过 XCode 本身做到这一点?

  3. 假设我将一个 XCode 项目签出到我的本地 mac。并锁定某个文件。另一个同事也签出同一个项目来编辑我锁定的同一个文件。我读到其他人也可以编辑该文件,但由于它已被锁定,因此他无法将其提交回来。有没有办法在签出时通知其他人某个文件被锁定了?

  4. 在存储库中,我创建了标准标签、分支和主干文件夹。该项目应该在trunk文件夹中,对吧?

回答by rob mayoff

  1. From the menu bar, choose Window > Organizer. Then in the Organizer window, choose the Repositories tab. The + button at the bottom left lets you add a new repository.

  2. No.

  3. You could try setting the svn:needs-lockproperty, I suppose, but you won't be able to do that from Xcode.

  4. Yes.

  1. 从菜单栏中,选择窗口 > 管理器。然后在管理器窗口中,选择存储库选项卡。左下角的 + 按钮可让您添加新的存储库。

  2. 不。

  3. svn:needs-lock我想您可以尝试设置该属性,但您将无法从 Xcode 执行此操作。

  4. 是的。