使用 Subversion 在 XCode 4 中切换分支时出现错误结果
我在 XCode 4 中有一个项目,使用 ssh 上的 subversion 。它配置有分支、标签和 trunk 子目录,我的项目(假设 ProjectOne)是 trunk 中它自己的目录,如下所示:
-|-trunk
| \- ProjectOne
|-tags
\-branches
我在 XCode 中配置了三个目录的相对路径,如下所示:
Trunk : trunk 分行:分行 标签:标签
这三个标签旁边都有一个绿色的“灯”。我已经使用组织器为我的项目创建了一个名为 ProjectOneBeta 的分支,svn 树现在具有以下结构:
-|-trunk
| \-ProjectOne
|-tags
\-branches
\-ProjectOneBeta
\-ProjectOne
如果我签出该项目(选择了 trunk/ProjectOne),它将通过在我的 Objective-C 目录中创建它自己的目录来签出。当我去切换一个分支时,结构变得很奇怪。然后它变成:
-ProjectOne
\-ProjectOne
有人能帮忙吗?我最初签入的代码是否错误? trunk 中不应该有那个初始子目录吗?难道是我查错了?或者我只是将相对路径设置不正确,尽管是绿色的?
I have a project in XCode 4 using subversion over ssh. It's configured with the branches, tags and trunk subdirectories and my project (let's say ProjectOne) is its own directory in trunk like so:
-|-trunk
| \- ProjectOne
|-tags
\-branches
I have the relative paths to the three directories configured in XCode like so:
Trunk : trunk
Branches : branches
Tags : tags
And all three have a green 'light' next to them. I have created a branch for my project called ProjectOneBeta using the organiser, the svn tree now has this structure:
-|-trunk
| \-ProjectOne
|-tags
\-branches
\-ProjectOneBeta
\-ProjectOne
If I checkout the project (with trunk/ProjectOne selected) it will check out by creating it's own directory in my Objective-C directory. When I go to switch a branch the structure gets all screwy though. It then becomes:
-ProjectOne
\-ProjectOne
Can anyone help? Have I checked in the code incorrectly initially? Should there not have been that initial subdirectory in trunk? Am I checking it out wrong? Or do I simply have the relative paths set incorrectly despite the green?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的结论是配置是正确的,但初始签入是错误的。我把所有的东西都上移了一层,所以代码和项目就在“后备箱”中。现在工作正常,我只需要记住签出到指定目录即可。
I concluded that the configuration was correct but the initial checkin was wrong. I moved all the stuff up one level so the code & project was just in 'trunk'. Works fine now I just have to remember to check out to a named directory.