简体   繁体   English

在XCode 4.6中使用Subversion

[英]Using Subversion with XCode 4.6

I have little experience using VSS before. 我以前使用VSS的经验很少。 For iOS development, I have installed Subversion on a remote Windows machine and accessing it from my Mac. 对于iOS开发,我已经在远程Windows计算机上安装了Subversion,并可以从Mac中访问它。 And I have a few gray areas to clear up. 我还有一些灰色区域需要清理。

  1. This is one of the tutorials I followed. 是我遵循的教程之一。 But its written based on an older version of XCode. 但是它是基于较旧版本的XCode编写的。 The SCM tab in XCode preferences is not in XCode 4.6. XCode首选项中的SCM选项卡不在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. 选择Subversion而不是Git的主要原因是能够在Subversion中锁定文件。 I know you can do it through the Terminal. 我知道您可以通过终端做到这一点。 Is there a way to do it through XCode itself? 有没有办法通过XCode本身做到这一点?

  3. Say I checkout an XCode project to my local mac. 假设我将XCode项目签出到本地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. 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-lock property, I suppose , but you won't be able to do that from Xcode. 我想您可以尝试设置svn:needs-lock属性 ,但是您将无法通过Xcode进行设置。

  4. Yes. 是。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM